# Program in C that reads radius of a circle and calculates its area

The below program in C will accepts the radius of a circle from the user and calculates its area and displays the calculated result to the user on the screen.

**Explanation**

*Step 1:* Read the radius

*Step 2:* Calculate the area by applying the formula: Area = (pi)*r^{2} = 3.14 * r^{2}

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include<stdio.h> #include<conio.h> void main() { float radius, area; printf("Radius = ?"); scanf("%f", &radius); //calculate the area area = 3.14 * radius * radius; //display the calculated result printf("Area = %f", area); getch(); } |

**Output:**

1 2 |
Radius = ?5 Area = 78.500000 |

## 1 Response

[…] Program in C that reads radius of a circle and calculates its area […]