This commit is contained in:
2023-10-03 12:16:10 +01:00
parent abc01ee776
commit b3554501ed
3 changed files with 39 additions and 0 deletions

13
C7/ex3.c Normal file
View File

@@ -0,0 +1,13 @@
#include <stdio.h>
#include <math.h>
int main() {
float radius, height;
printf("Enter radius: ");
scanf("%f", &radius);
printf("Enter height: ");
scanf("%f", &height);
printf("Surface area: %f\n", 2*M_PI*radius*radius + 2*M_PI*radius*height);
}