Area Of Circle Example C Program

Definition

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

Formula

The area of a circle is written

A=πr2

here,

r = Radius
π = ~3.14

Area Of Circle Example Program

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

#include<stdio.h>

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 : 6.14

 

Top Pages