Write a c program to find the area of rectangle
#include <stdio.h>
int main()
{
float length,width,area;
printf("Enter the length of the rectangle: \n");
scanf("%f",&length);
printf("Enter the width of the rectangle: \n");
scanf("%f",&width);
area=length*width;
printf("Area of the rectangle is= %f", area);
return 0;
}
Comments
Post a Comment