Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h >
- #define PI 3.14
- void main()
- { float d,h,s;
- printf("Enter distance : ");
- scanf("%f",&d);
- printf("Enter height : ");
- scanf("%f",&h);
- s=(2*PI*d*d/4)+(2*PI*d/2*h);
- printf("Surface = %f",s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement