C program to find the area of a circle
C program to
find the area of a circle using the simple formula Area of Circle = pi*radius*radius, and value of pi= 3.14
#include<stdio.h>
#include<conio.h>
void
main()
{
float radius,area,pi=3.14;
clrscr();
printf("Enter the Radius of a Circle :
");
scanf("%f",&radius);
area = pi*radius*radius;
printf("Area of Circle is:
%f",area);
getch();
}
===========================
OUTPUT:-
Enter
the Radius of a Circle: 16
Area
of Circle is: 803.840027
===========================
Comments
Post a Comment