Area Of Circle In C

Q. How to Find Area of Circle In C ?

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float r,area;
clrscr();
printf(“Enter the radius of circle”);
scanf(“%f”,&r);
area=r*r;
area=area*3.14;
printf(“%0.2f”,area);
getch();
}

After Running Program  🙂

 

 

Leave a Reply