This commit is contained in:
Akbar Rahman 2023-10-03 11:58:39 +01:00
parent 242826ea92
commit abc01ee776
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

11
C7/ex2.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
#include <math.h>
int main() {
float r;
printf("Enter radius: ");
scanf("%f", &r);
printf("Area of circle: %f\n", M_PI*r*r);
printf("Volume of sphere: %f\n", M_PI*r*r*r*4.0/3.0);
}