How to write a C Program to Input Radius and Calculate Area and Circumference of Circle in C Programming ?
Solution:
//Program to input radius and calculate area and circumference of circle.
#include<stdio.h>
#include<conio.h>
void main()
{
float radius;
clrscr();
printf("Enter radius of the circle: ");
scanf("%f", &radius);
printf("The circumference of circle of radius %f is: %f\nThe area of circle of radius %f is: %f", radius, 2*3.14*radius, radius, 3.14*radius*radius);
getch();
}