If the perimeter is 32 sq cm, there is a very serious problem since the perimeter is a linear measure, not an area!
Leaving that aside, the length of the rectangle is 10 cm and the breadth is 6 cm.
Chat with our AI personalities
#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 is length times width, perimeter is twice the sum of length and breadth.
The perimeter is the sum of its 4 sides and its area is length times width
Area of rectangle = length * breadth
Area of rectangle = length * breadth or length * width