The length and width are factors of the area.
int length int breadth int area= (length x breadth) print area
When the breadth of a rectangle is doubled, the area of the rectangle also doubles. The area of a rectangle is calculated by multiplying its length by its breadth (Area = Length × Breadth). Therefore, if the original breadth is increased to twice its size, the new area becomes Area = Length × (2 × Breadth), resulting in double the original area.
#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 or length * width
Area of rectangle = length * breadth
All you need to do is length x breadth = area
int length int breadth int area= (length x breadth) print area
When the breadth of a rectangle is doubled, the area of the rectangle also doubles. The area of a rectangle is calculated by multiplying its length by its breadth (Area = Length × Breadth). Therefore, if the original breadth is increased to twice its size, the new area becomes Area = Length × (2 × Breadth), resulting in double the original area.
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!
include<stdio.h> #include<conio.h> void main() { int length, breadth, area ; printf("\n Enter the length & breadth of a Rectangle"); scanf("d",&length,&breadth); area=length*breadth; printf("\n Area of the Rectangle=%d",area); getch(); }
The area of any rectangular shape, including the square, is the length times the breadth. Area = length x 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"); }
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!
It is 2*(Length*Breadth + Breadth*Height + Height*Length).
Area of rectangle = length * breadth or length * width
Divide the area by the length of the rectangle
length*breadth