Skip to main content

Write a c programm to find the area of rectangle.

 Que : Write a c programm to find the area of rectangle.


Ans :

         


#include<stdio.h>


int main()


{

float length,breadth,area;

printf("Enter the length : ");

scanf("%f",&length);

printf ("Enter the breadth : ");

scanf("%f",&breadth);

area=length*breadth;

printf("area of ractangle is : %f ",area);

return 0;

}


******************************************************

            Now I show input and output of the question.

*******************************************************





******************************************************************************






*********************************************************************************

Comments

Post a Comment