// C Program to calculate the AREA of rectangle
#include <stdio.h>
int main()
{
float width,lenth,area;
printf("enter width of a rectangle : ");
scanf("%f",&width);
printf("enter lenth of a rectangle : ");
scanf("%f",&lenth);
area=lenth*width;
printf("area of a rectangle is %0.3f",area);
return 0;
}
 
 
0 Comments