Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h >
  3. #define PI 3.14
  4.  
  5. void main()
  6. { float d,h,s;
  7. printf("Enter distance : ");
  8. scanf("%f",&d);
  9. printf("Enter height : ");
  10. scanf("%f",&h);
  11. s=(2*PI*d*d/4)+(2*PI*d/2*h);
  12. printf("Surface = %f",s);
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement