/*To find the area of a circle having finite radius*/
#include<stdio.h>
#include<math.h>
int main()
{
float a, area;
printf("Enter the value of Radius: ");
scanf("%f", &a);
area=3.1415927*a*a;
printf("\n The area of the circle is: %f\n",area);
return(0);
}
#include<stdio.h>
#include<math.h>
int main()
{
float a, area;
printf("Enter the value of Radius: ");
scanf("%f", &a);
area=3.1415927*a*a;
printf("\n The area of the circle is: %f\n",area);
return(0);
}
Comments
Post a Comment