Write a program to calculate the area and circumference of a circle.
#include <stdio.h>
#include<conio.h>
#define PI 3.1416
main()
{
float radius, aoc, coc;
clrscr();
printf("\nEnter the Radius of the Circle: ");
scanf("%f", &radius);
aoc = PI*radius*radius;
coc = 2*radius*PI;
printf("\n\nThe area of the Circle with radius %f is: %f ", radius, aoc);
printf("\nThe circumference of the same circle is: %f", coc);
getch();
}
#include<conio.h>
#define PI 3.1416
main()
{
float radius, aoc, coc;
clrscr();
printf("\nEnter the Radius of the Circle: ");
scanf("%f", &radius);
aoc = PI*radius*radius;
coc = 2*radius*PI;
printf("\n\nThe area of the Circle with radius %f is: %f ", radius, aoc);
printf("\nThe circumference of the same circle is: %f", coc);
getch();
}