Skip to content
Related Articles

Related Articles

C Program for Program to find area of a circle
  • Last Updated : 06 Dec, 2018

Area of a circle can simply be evaluated using following formula.

Area = pi * r2
where r is radius of circle 




#include <math.h>
#include <stdio.h>
#define PI 3.142
  
double findArea(int r)
{
    return PI * pow(r, 2);
}
  
int main()
{
    printf("Area is %f", findArea(5));
    return 0;
}


Output:

Area is 78.550000

Please refer complete article on Program to find area of a circle for more details!

My Personal Notes arrow_drop_up
Recommended Articles
Page :