#include<stdio.h>
#include<conio.h>
#include<math.h>
#define p 3.1428571429
int main()
{
float r, c, a;
clrscr();
printf("Enter Radius of the Circle: r=");
scanf("%f", &r);
c=2*p*r;
printf("Circumference of the Circle=%f\n", c);
a=p*r*r;
printf("Area of the Circle=%f\n", a);
getch();
return 0;
}
Note: Need to be arranged in compiler after copied
OutPut:
Enter Radius of the Circle: r=2
Circumference of the Circle=12.571428
Area of the Circle=12.571428