length * breadth. (or, can be said as - length times width)
If the breadth of the rectangle is 2, then its length is 5. which means that the area is 10 square units.
Area is length times width, perimeter is twice the sum of length and breadth.
If the breadth is 3, it means that the length is 5 which therefore means the area is 15 square units.
#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"); }
length * breadth. (or, can be said as - length times width)
If the breadth of the rectangle is 2, then its length is 5. which means that the area is 10 square units.
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!
Area is length times width, perimeter is twice the sum of length and breadth.
Divide the area by the length of the rectangle
All you need to do is length x breadth = area
2(length+breadth)=Perimetre Length= (Perimetre/2)-Breadth Area=Length x breadth
length*breadth
If the breadth is 3, it means that the length is 5 which therefore means the area is 15 square units.
#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"); }
int length int breadth int area= (length x breadth) print area
Area of rectangle = length * breadth or length * width