0

find the area of square (s*s)

31st Dec 2016, 11:57 AM
saja
4 ответов
0
Ugh... What Is the question?
31st Dec 2016, 12:06 PM
Dao
Dao - avatar
0
write c++ program to find find the area of square (s*s)
31st Dec 2016, 12:50 PM
saja
0
Just define a function with 1 parameter, multiply it by itself, and return it as output.
31st Dec 2016, 12:51 PM
Dao
Dao - avatar
0
int sideOne; cin >> sideOne; int sideTwo; cin >> sideTwo; cout<< endl; int areaOfSquare = sideOne * sideTwo; cout << areaOfSquare; If you input decimals then use float or double instead of int.
1st Jan 2017, 12:14 AM
Kourosh Azizi
Kourosh Azizi - avatar