Friday, May 13, 2016

Calculate Area Of Circle



#include <stdio.h>
#include <math.h>
#define PI 3.142

void main()
{
 float radius, area;
    printf("Enter the radius of a circle :\n");
 scanf ("%f", &radius);
 area = PI * pow (radius,2);
 printf ("Area of circle = %5.2f\n", area);
}






Share this

0 Comment to "Calculate Area Of Circle"

Post a Comment