C Program To Find Area Of The Rectangle

C Program To Find Area Of The Rectangle

Code
// C program to find area of rectangle...

#include <stdio.h>
int main()
{
   float h, l, a;

   printf("Enter your height:\n");
   scanf("%f", &h);

   printf("Enter your length:\n");
   scanf("%f", &l);

   printf("Area of rectangle is:%f", h * l);
}
Output
Enter your height:
5
Enter your length:
7
Area of rectangle is:35.000000

Post a Comment