Devise an algorithm For A program to Calculate the Area and perimeter of a rectangle
Answers
Answered by
1
Answer:
Algorithm to Calculate the Area and perimeter of a rectangle.
Explanation:
1) Declare the variables integer l, b, area, perimeter.
2) Take the input length read l.
3) Take the input breadth read b.
4) Calculate the area l × b.
5) Calculate the perimeter 2×(l + b).
6) Print and store the result of the area (print area).
7) Print and store the result of the perimeter (print perimeter).
Similar questions
Hindi,
5 months ago
Computer Science,
5 months ago
Hindi,
10 months ago
Math,
10 months ago
Math,
1 year ago