C PROGRAM TO FIND AREA OF
A RECTANGLE
Best C programming app is Dev c++ The formula to findout area of a rectangle is
Area=[LxB]
To find area of a rectangle the program must be as given below:-
_____________________________
#include<stdio.h>
int main()
{
int l,b,area;
printf("Enter the length of Rectangle:");
scanf("%d",&l);
printf("Enter the breadth of Rectangle:");
scanf("%d",&b);
area=l*b;
printf("The Area of the Rectangle=%d",area);
return 0;
}
_____________________________
_____________________________
OUTPUT:- Enter the length of Rectangle:12
Enter the breadth of Rectangle:10
The Area of the Rectangle=120
_____________________________
Thank you all -----
Follow my blog for more programming knowledge...
------------------x----------------------x-------------------------x------------------
Comments
Post a Comment