IDNLearn.com: Where your questions are met with thoughtful and precise answers. Get the information you need from our community of experts who provide accurate and thorough answers to all your questions.

3. Write an algorithm to find Area of square?

Sagot :

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