answersLogoWhite

0


Best Answer
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

βˆ™ 11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 12y ago

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");

}

}

This answer is:
User Avatar

User Avatar

Isimbi Emelyne

Lvl 2
βˆ™ 2y ago

start

sum = 0

input L, W

sum = L * W

print "The area of the rectangle is: SUM"

end

This answer is:
User Avatar

User Avatar

Theresa Afari

Lvl 2
βˆ™ 1y ago

Start

1.accept L

  1. Accept W

  2. A=LΓ—W

4.print A

  1. Stop
This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 17y ago

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

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 13y ago

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

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 12y ago

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

L x W = A

L = 2

W=2

A =4

This answer is:
User Avatar

User Avatar

Avalanche skill

Lvl 2
βˆ™ 3y ago

1 start

2 Accept L

3 Accept w

4 A= LΓ—W

5 print A

6 stop

This answer is:
User Avatar

User Avatar

Avalanche skill

Lvl 2
βˆ™ 3y ago

1 start

2 Accept L

3 Accept w

4 A= LΓ—W

5 print A

6 stop

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 12y ago

Multiply the length x the width.

This answer is:
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
Related questions

How do i write an algorithm using pseudocode especially when it concerns salary and net salary?

to find area and perimeter of a rectangle


Write an algorithm to find the area of a rectangleAlgorithmInput length of a rectangleInput width of a rectangleCalculate area using the expression area = length x widthDisplay the area of rectangle?

That's correct!


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation


Jasmine knows that the area of a rectangle is the product of its base and height help her write an expression that represents the area of this rectangle and then use the expression to find the area would be equals 10?

40


Write a menu driven program in java to find area of different shapes. 1. Circle 2. Triangle 3. Rectangle?

Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }


What is the area of a rectangle is the length is 16 and the primeter is 56?

The area of rectangle is : 896.0


The length of a rectangle is twice its width If the perimeter of the rectangle is 54y find its area?

The length of a rectangle is twice its width. If the perimeter of the rectangle is , find its area.


Can you write an algorithm to find the beast numbers?

maybe


The length of a rectangle is 5 more then the width Find the perimeter and the area of the rectangle?

the length of a rectangle is 5 more then the width. Find the perimeter and the area of the rectangle


How do you write an algorithm and draw a flow chart to find the area of a circle?

start read pie area circum print area print circum stop


How can you find the answer for the perimeter and area of a rectangle?

find the perimeter and area of a rectangle that is 15cm long and 5cm wide


Why do people find it difficult in finding area of a rectangle?

in order to find area of rectangle=(len*bred)