write an algorithm that compute the area of a square
Answers
Answered by
33
Answer:
s^2
Explanation:
In a square every side is the same length so any one side measure, s , is both the lenght and the width.
Answered by
143
Answer:
In order to calculate area of a square, 'A' be the area of square and the length of the square be 'a'. Then we need to calculate A= a*a.
Explanation:
Algorithm for calculating area of a square is as follows:-
Step 1 :- Start
Step 2 :- Accept as input, the length of the sides of the square, and store the value in variable a.
Step 3 :- Calculate the area of the square (a*a) and store in a variable A.
Step 4 :- Display the area of the square.
Step 5 :- Stop
Similar questions