C program to calculate area and circumfrances of circle
//C program to calculate area and circumfrances of circle
#include <stdio.h>
void main()
{
float radius, area, cf;
printf("Enter radius of the circle: \n");
scanf("%f", &radius);
//value of pi is 3.14
area=3.14*radius*radius;
printf("The area of the circle is %f", area);
cf=2*3.14*radius;
printf("\nThe Circumfrances of circle is %f", cf);
}
Comments
Post a Comment