Computer Science, asked by dolank07, 5 hours ago

13.Write an Algorithm to accept Length and Breadth of a rectangle from the user. Calculate and print the Area and Perimeter of the rectangle. [Hint: Area of a rectangle = Length x Breadth , Perimeter of a rectangle = 2(Length + Breadth)]​

Answers

Answered by GTPC
0

Answer:

Take the input length(l).

Take the input breadth(b).

Apply the formula of area (l b).

store it in variable ( Area= l b).

Perimeter formula (2 (l+b)).

Store it in variable(Perimeter=2 (l+b)).

Print Area.

Print Perimeter.

Explanation:

Similar questions