Writing an algorithm to display area of a square
Answers
Answered by
2
Answer:
it will help you.....
Explanation:
Algorithm for calculating area of a square is as follows:-
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.
Answered by
4
Here is your answer.
Step 1: Start
Step 2:Read the side, say s
Step 3: Calculate area (s*s) and store this value in s variable.
Step 4: Display s.
Step 5: Stop.
Similar questions