desislava_topuzakova

08. Fish Tank

Mar 9th, 2021
707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. # обем (куб.см) = дължина(см) * широчина(см) * височина(см)
  2. # обем (куб.см) -> / 1000 -> обем (литри)
  3. # процент заета част -> /100 -> число
  4. # нужни литри = обем в литри * (1 - процент заета част)
  5. # принтираме нужните литри
  6.  
  7. length = int(input())
  8. width = int(input())
  9. height = int(input())
  10. percent = float(input())
  11.  
  12. volume = length * width * height
  13. volume_liters = volume / 1000 #volume * 0.001
  14. occupied_part = percent / 100 #percent * 0.01
  15. need_liters = volume_liters * (1 - occupied_part)
  16.  
  17. print(need_liters)
Advertisement
Add Comment
Please, Sign In to add comment