Computer Science, asked by edithpato2081, 1 year ago

Devise an algorithm For A program to Calculate the Area and perimeter of a rectangle

Answers

Answered by sushiladevi4418
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