Advertisement
matheusscorrea

Untitled

Mar 26th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     double a, h, v;
  6.     scanf("%lf %lf", &a, &h);
  7.     v = (3.14159 * h * (3 * (a * a)) + h * h) / 6;
  8.     printf("V = %lf", v);
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement