Explanation:
AREA OF SQUARE:
A square is simply a rectangle with equal sides. As a result, the length and breadth of a square are equal. As a result, the area of a square is the product of two square sides, or in simpler terms, squares of the side.
Area = Side^{2}Area=Side
2
We use the following formula to compute the area of a rectangle after being given the length and width of the rectangle as input.
ALGORITHM:
Step 1 : Start
Step 2: Input Side
Step 3: Area = Side \times× Side
Step 4: Print area
Step 5: Stop