C program to Compute Area of Circle

Write a program to Compute Area of Circle

// C program to Compute Area of Circle

#include<stdio.h>

int main()
 {

   float radius, area;

   printf("\nEnter Radius of Circle :--> ");
   scanf("%f", &radius);

   area = 3.14 * radius * radius;
   printf("\nArea of Circle : %f", area);

   return 0;
}

Output:

Enter Radius of Circle :--> 5

Area of Circle : 78.500000

≪ Previous | Next ≫