Computer Science, asked by kartikeyakumar92, 1 year ago

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 nghuuditeko
6

Answer:

hhyyyyyyyj

Exp\

lanation:

iiiiiiiiit≅β㏒

Answered by sushiladevi4418
40

Answer:

Algorithm to enter the length and breadth of a rectangle. Calculate and print its area and perimeter

Area = length \timesbreadth

Perimeter = 2(length+breadth)

Explanation:

1) Take the input length(l).

2) Take the input breadth(b).

3) Apply the formula of area (l\timesb).

4) store it in variable ( Area= l\timesb).

5) Perimeter formula (2\times(l+b)).

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

7) Print Area.

8) Print Perimeter.

Similar questions