bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_1 / tuition-c / APC-PRAC-004.c

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 }