In this program, the user is asked to enter radius of circle and the area of circle is calculated and the area is display displayed on console.
#include<stdio.h>
#include<conio.h>
void main()
{
float radius, area;
clrscr();
printf("Enter radius of circle: ");
scanf("%f", &radius);
area = 3.14 * radius * radius;
printf("Area of circle = %f", area);
getch();
}
Enter radius of circle: 5.7
Area of circle = 102.018593