Advertisement
Guest User

fishTank

a guest
Aug 18th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int length, width, height;
  7. double percent, result, volume;
  8. scanf("%d %d %d %lf", &length, &width, &height, &percent);
  9.  
  10. volume = length * width * height * 0.001;
  11. result = volume * (1 - percent * 0.01);
  12. printf("%.3f", result);
  13.  
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement