Given the length of the side of a square, calculate and print the area of the square.
Sample:
Code:
#include <iostream>
using namespace std;
int main()
{
int l,a;
cout << " Enter Length : ";
cin >> l;
a = l * l;
cout << " Area : " << a;
return 0;
}
Comments
Post a Comment