To calculate the area of a circle easily I made a program out of its equation. Since we're going to use PI anywhere in the program we need to declare it globally, meaning we need to declare it out of the main program. Check out the sample code below.
1: #include <stdio.h>
2: #include <conio.h>
3: #define PI 3.141
4:
5: int main()
6: {
7: float r, a;
8:
9: printf("Radius: ");
10: scanf("%f", &r);
11: