For example: L - Length & W - Width
start
sum = 0
input L, W
sum = L * W
print "The area of the rectangle is: SUM"
end
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");
}
}
start
sum = 0
input L, W
sum = L * W
print "The area of the rectangle is: SUM"
end
Start
1.accept L
Accept W
A=LĂW
4.print A
To find the area of a rectangle you mutiply the base times the height. A=BH -jessica
Convert all unit length (width and length) to feet and then find the area (width * length) as normal.
LW = A 2 inches tall x 2 inches wide = 4 inches in area
L x W = A
L = 2
W=2
A =4
1 start
2 Accept L
3 Accept w
4 A= LĂW
5 print A
6 stop
1 start
2 Accept L
3 Accept w
4 A= LĂW
5 print A
6 stop
Multiply the length x the width.
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
start read pie area circum print area print circum stop
jgfujtf
Perform encryption on the following PT using RSA and find the CT p = 3; q = 11; M = 5
By using that one thing.
to find area and perimeter of a rectangle
That's correct!
write an algorithm and draw a flow chart to find perimeter of a square
Write an algorithm to find the root of quadratic equation
40
Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }
The area of rectangle is : 896.0
The length of a rectangle is twice its width. If the perimeter of the rectangle is , find its area.
maybe
the length of a rectangle is 5 more then the width. Find the perimeter and the area of the rectangle
start read pie area circum print area print circum stop
find the perimeter and area of a rectangle that is 15cm long and 5cm wide