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"); }
Area of rectangle = length * breadth
Area of rectangle = length * breadth or length * width
int length int breadth int area= (length x breadth) print area
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
Well, isn't that just a happy little problem to solve! To find the area of a rectangle, you multiply the length by the breadth. And to find the length, you can use the formula: length = (perimeter - 2 * breadth) / 2. Just remember, there are no mistakes, only happy accidents in math!
All you need to do is length x breadth = area
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"); }
Area of rectangle = length * breadth
Area of rectangle = length * breadth or length * width
int length int breadth int area= (length x breadth) print area
breadth multipied by the length
product of length and breadth