C Program to Find the Area of a Circle

#include<stdio.h>
void main()
{
float A,r;
printf(“enter the radius of the circle “);
scanf(“%f”,&r);
A=3.14*r*r;
printf(“\nthe area of the cirlce = %f”,A);
}

OUTPUT

Area of circle can also be calculated using pow() function. For this we must have to include another header called math.h .

Leave a Reply

Your email address will not be published.