Area Of Circle Example C Program


The area of a circle is π (Pi) times the Radius squared, which is written A=πr2.


The area of a circle is written



r = Radius
π = ~3.14

Area Of Circle Example Program

/*##Area Of Circle*/
/*##Calculation Programs, Datatype Programs, Basic Programs*/


int main(){
   float radius, area;

   printf("\nEnter the radius of Circle : ");
   scanf("%f", &radius);

   area = 3.14 * radius * radius;
   printf("\nArea of Circle : %f", area);

   return (0);

Sample Output

Output is:
Enter the radius of Circle: 2.0
Area of Circle:12.57