write an algorithm to enter length and breadth of a rectangle. Calculate and print its area and perimeter area=length*breadth perimeter=2(length+breadth)
Answers
Answered by
6
Answer:
hhyyyyyyyj
Exp\
lanation:
iiiiiiiiit≅β㏒
Answered by
40
Answer:
Algorithm to enter the length and breadth of a rectangle. Calculate and print its area and perimeter
Area = length breadth
Perimeter = 2(length+breadth)
Explanation:
1) Take the input length(l).
2) Take the input breadth(b).
3) Apply the formula of area (lb).
4) store it in variable ( Area= lb).
5) Perimeter formula (2(l+b)).
6) Store it in variable(Perimeter=2(l+b)).
7) Print Area.
8) Print Perimeter.
Similar questions