This is a c program to find out the area of a circle.
#include<stdio.h>
#define PI 3.14
int main()
{
int redius;
float area;
printf("Enter the redius of the circle ");
scanf("%d",&redius);
area=PI*redius*redius;
printf("\nThe area of the circle is %5.2f\n",area);
return 0;
}
The out put will be....
0 comments:
Post a Comment