Step 1: Start
Step 2: Declare integer variables r, a, c
Step 3: Take input for radius (r)
Step 4: Compute area as a = PI * r * r
Step 5: Compute circumference as c = 2 * PI * r
Step 6: Print the values of area and circumference
Step 7: End
#include<stdio.h> #include<math.h> #define PI 3.14 int main() { int r; float a, c; printf("Enter Radius : "); scanf("%d", &r); // Area a = PI * r * r; printf("\nArea of Circle : %.2f", a); // Circumference c = 2 * PI * r; printf("\nCircumference of Circle : %.2f", c); return 0; }
Enter Radius: 5 Area of Circle: 78.50 Circumference of Circle: 31.40