That is how the concept of area is defined!
Chat with our AI personalities
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.
#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 is 3, it means that the length is 5 which therefore means the area is 15 square units.