Because the interminable, slow evolution of the human brain, with the almost
imperceptible increments of experience and reasoning ability that have come
with it, have led us to realize that if we perform any different operation in
search of the rectangle's area, we get the wrong answer. Our inexorable and
instinctive quest for survival as a sentient species, as well as our individual
combined hunger and thirst to pass our math quizzes, ultimately led us to
adopt that particular procedure universally.
#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
Area of rectangle = length * breadth
If the breadth of the rectangle is 2, then its length is 5. which means that the area is 10 square units.
multiply the length with the breadth.
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
All you need to do is length x breadth = area
2(length+breadth)=Perimetre Length= (Perimetre/2)-Breadth Area=Length x breadth
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"); }
int length int breadth int area= (length x breadth) print area
Area of rectangle = length * breadth or length * width
Area of rectangle = length * breadth
breadth multipied by the length
product of length and breadth