Skip to main content

Area of Circle Example C Program

1 min read
Share:
On this page (6sections)

About this program

This is an example program in c calculation programs. Read the concept first: Data Types in C Programming, then study the code and output below.

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

Learn the concept first, then study the code:

Related Tutorials

Search tutorials