#include<stdio.h>
int main()
{
{
int rad;
float PI = 3.14, area, ci;
float PI = 3.14, area, ci;
printf("\nEnter radius of circle: ");
scanf("%d", &rad);
scanf("%d", &rad);
area = PI * rad * rad;
printf("\nArea of circle : %f ", area);
printf("\nArea of circle : %f ", area);
ci = 2 * PI * rad;
printf("\nCircumference : %f ", ci);
printf("\nCircumference : %f ", ci);
return 0;
}
}
Output :
Enter radius of circle: 3 Area of circle : 28.260000 Circumference : 18.840000
0 Comments