If the breadth of the rectangle is 2, then its length is 5. which means that the area is 10 square units.
If the breadth is 3, it means that the length is 5 which therefore means the area is 15 square units.
Volume = Length *Breadth*Height
#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"); }
360
Let the length be x: 2*x = perimeter-(2*breadth) Then divide both sides by 2 to find the vallue of x
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!
breadth multipied by the length
multiply the length with the breadth.
product of length and breadth
If the shape is a rectangle (or square), then Perimeter = 2*(Length + Breadth) So Breadth = Perimeter/2 - Length
If the breadth is 3, it means that the length is 5 which therefore means the area is 15 square units.
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!
Volume = Length *Breadth*Height
#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"); }
A rectangle is a 2-dimensional object. It cannot have length and breadth AND height. If three dimensions are given, then two of them (eg breadth and height) must stand for the same thing.
360
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(); }