# Write a program in c to calculate the area of a circle

In this tutorial, we will see how to calculate area of the circle when you get radius as input.

You can simply calculate area the circle with below formula.

1 2 |
area=3.14*(radius*radius); |

Here is simple program to calculate area of the circle.

1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include int main() { float radius,area; printf("Enter radius of the circle:"); scanf("%f",&radius); area=3.14*(radius*radius); printf("Area=%f",area); return 0; } |

**Output:**

Enter radius of the circle:5

Area=78.500000

Area=78.500000

That’s all about calculating area of the circle in C.