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");
}
}
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 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
in order to find area of rectangle=(len*bred)