APC-PRAC-004.c (315B)
1 /* WAP to calculate and display radius of a circle by taking the area as input. */ 2 3 #include <stdio.h> 4 #include <math.h> 5 int main() 6 { 7 double r, area; 8 printf("Enter the area of the circle : "); 9 scanf("%lf", &area); 10 r = sqrt(area / M_PI); 11 printf("\nRadius of the circle : %g", r); 12 return 0; 13 }