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-SPS-008.c

APC-SPS-008.c (315B)


      1 /* WAP to calculate area of circle by accepting radius as input */
      2 /* Author : Amit Dutta, Date : 15th September, 2025 */
      3 
      4 #include<stdio.h>
      5 #include<math.h>
      6 int main() {
      7 	double r, area;
      8 	printf("Enter the radius of circle : ");
      9 	scanf("%lf", &r);
     10 	area = M_PI * r * r;
     11 	printf("\nArea : %lf", area);
     12 	return 0;
     13 }