Rotate your phone or change to desktop for better experience

Rotate your phone or change to desktop for better experience

C Program to calculate the AREA of rectangle

 // 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;

 

}

Post a Comment

0 Comments