Program to find area and circumference of a circle
CODING:
#include
#include
int main()
{
float radius, area, circum;
clrscr();
printf("Enter radius: ");
scanf("%f", &radius);
area = radius * radius * 22 / 7; /* pr² */
circum = 2 * radius * 22 / 7; /* 2pr */
printf("Area = %f\nCircumference = %f\n", area, circum);
getch();
return 0;
}
REMAINING WILL UPDATED SOON
#include
int main()
{
float radius, area, circum;
clrscr();
printf("Enter radius: ");
scanf("%f", &radius);
area = radius * radius * 22 / 7; /* pr² */
circum = 2 * radius * 22 / 7; /* 2pr */
printf("Area = %f\nCircumference = %f\n", area, circum);
getch();
return 0;
}
REMAINING WILL UPDATED SOON