C Program to find Area of a Circle

#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 : 2
Area of Circle is: 12.560000

Leave a Reply

Your email address will not be published.