How to Calculate Area of Circle using C Programming

C Program to Calculate Area of Circle

Shape : Circle


Formula : Π * r * r

Definition :
1. Ellipse in which the two axes are of equal length
2. Plane curve generated by one point moving at a constant distance from a fixed point
3. You can compute the area of a Circle if you know its radius.

Program :


#include <stdio.h>
 
int main() {
   float radius, area;
 
   printf("\nEnter the radius of Circle : ");
   scanf("%d", &radius);
 
   area = 3.14 * radius * radius;
   printf("\nArea of Circle : %f", area);
 
   return (0);
}

Output :


Enter the radius of Circle : 2.0
Area of Circle : 6.14
How to Calculate Area of Circle using C Programming

Published on 12-Dec-2021 13:16:37

You may also like this!