Area of rectangle = length * breadth
#include<stdio.h> void main() { float length, breadth, area, perimeter; printf("Enter the length & breadth of a Rectangle\n(length breadth): "); scanf("%f %f",&length,&breadth); area=length*breadth; perimeter=2*(length+breadth); printf(" Area of the Rectangle=%0.3f\n",area); printf("Perimeter of the Rectangle=%0.3f\n",perimeter); printf("(Press ENTER to exit.)"); getch(); printf("\n"); }
If the breadth of the rectangle is 2, then its length is 5. which means that the area is 10 square units.
That is how the concept of area is defined!
int length int breadth int area= (length x breadth) print area
Area = length*width new Area = 2 * length * width Area is doubled
The breadth of a rectangle is the height.
If you do not know the length or breadth of a rectangle, you cannot know the area. If you do not know the area of a rectangle, you cannot know the length and breadth. To know the length and breadth of a rectangle, you have to know some other contributing factor in the equation. If you don't, measure it!
Divide the area by the length of the rectangle
the perimeter will double. but the area should doubled to four
All you need to do is length x breadth = area
length*breadth
Area of rectangle = length * breadth
If 2 sides of the rectangle are 6cm, then the remaining 2 sides are 4cm. Area = Length x Breadth Breadth = Area / Lenghth 24 = 6 x Breadth Breadth = 24 / 6 = 4
#include<stdio.h> void main() { float length, breadth, area, perimeter; printf("Enter the length & breadth of a Rectangle\n(length breadth): "); scanf("%f %f",&length,&breadth); area=length*breadth; perimeter=2*(length+breadth); printf(" Area of the Rectangle=%0.3f\n",area); printf("Perimeter of the Rectangle=%0.3f\n",perimeter); printf("(Press ENTER to exit.)"); getch(); printf("\n"); }
2(length+breadth)=Perimetre Length= (Perimetre/2)-Breadth Area=Length x breadth
breadth multipied by the length