You are here

c program to find area of circle

c program to find area of circle: c programming code to calculate area of circle.

C programming code

   float radius, area;
   printf("Enter the radius of circle\n");
   /* M_PI (pi) is a constant in math.h header file */
   area = M_PI*radius*radius;  
   printf("Area of circle = %.2f\n", area);
   return 0;