answersLogoWhite

0

You will need to define the input and times length by width.

For example: L - Length & W - Width


start

sum = 0

input L, W

sum = L * W

print "The area of the rectangle is: SUM"

end

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
More answers

main

{

int l,b,s,ch;

printf("\n menu options:");

printf("\n 1.rectangle:");

printf("\n 2.square:");

printf("\n enter your choice");

scanf("%d",&ch);

switch(ch)

{

case1:printf("\n enter the length and breadth:");

scanf("%d%d",&l,&b);

printf("\n area=%d",l*b);

printf("\n perimeter=%d",2*(l*b));

break;

case2:printf("\n enter the side:");

scanf("%d",&s);

printf("\n area=%d",s*s);

printf("\n perimeter=%d",4*s);

break;

default:printf("\n invalid value");

}

}

User Avatar

Wiki User

12y ago
User Avatar

start

sum = 0

input L, W

sum = L * W

print "The area of the rectangle is: SUM"

end

User Avatar

Isimbi Emelyne

Lvl 2
2y ago
User Avatar

Start

1.accept L

  1. Accept W

  2. A=L×W

4.print A

  1. Stop
User Avatar

Theresa Afari

Lvl 2
2y ago
User Avatar

To find the area of a rectangle you mutiply the base times the height. A=BH -jessica

User Avatar

Wiki User

18y ago
User Avatar

Convert all unit length (width and length) to feet and then find the area (width * length) as normal.

User Avatar

Wiki User

13y ago
User Avatar

LW = A 2 inches tall x 2 inches wide = 4 inches in area

L x W = A

L = 2

W=2

A =4

User Avatar

Wiki User

13y ago
User Avatar

1 start

2 Accept L

3 Accept w

4 A= L×W

5 print A

6 stop

User Avatar

1 start

2 Accept L

3 Accept w

4 A= L×W

5 print A

6 stop

User Avatar

Multiply the length x the width.

User Avatar

Wiki User

13y ago
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write algorithm to find the area of a rectangle?
Write your answer...
Submit
Still have questions?
magnify glass
imp