C PROGRAM TO FIND OUT AREA OF A
CIRCLE
Best C programming app is Dev c++
To find the areaa of a circle we have to apply the formula given below:-
[ (pi*r*r) ]
The program we will write as given below:-
#include<stdio.h>
int main()
{
float pi=3.1416,area;
int r;
printf("Enter the Radius:");
scanf("%d",&r);
area=pi*r*r;
printf("Area of the Circle is %f",area);
return 0;
}
OUTPUT:-
Enter the Radius:6
Area of the Circle is 113.097595
Thank you all -----
Follow my blog for more programming knowledge...
------------------x----------------------x-------------------------x------------------
Comments
Post a Comment