C++ Programming Code Examples C++ > Computer Graphics Code Examples Area Of Square Area Of Square In classical times, the second power was described in terms of the area of a square, as in the above formula. This led to the use of the term square to mean raising to the second power. Thus the area of the square is twice the length of the square. Area Of Square Formula A=s^2 here, A=Area s=side of the square #include <iostream> #include<conio.h> #include<stdlib.h> using namespace std; int main() { // Declare Variables float length, area; cout << "Simple C++ Program : Area Of Square\n"; cout << "\nEnter the Length of Square : "; cin>>length; area = length * length; cout << "\nArea of Square : " << area; getch(); return (0); }