Tuesday, 29 September 2015

C Program to Calculate Circumference of a circle



/*Program to Calculate Circumference of a circle*/
#include<stdio.h>
#define PI 3.14
main()
{
      float r,c;
      printf("\n Enter the Radius");
      scanf("%f",&r);
      c=2*PI*r;
      printf("\n Circumference of circle with Radius %f is %f",r,c);
}


No comments:

Post a Comment