0
find the area of square (s*s)
4 Answers
0
Ugh... What Is the question?
0
write c++ program to find find the area of square (s*s)
0
Just define a function with 1 parameter, multiply it by itself, and return it as output.
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.