Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # обем (куб.см) = дължина(см) * широчина(см) * височина(см)
- # обем (куб.см) -> / 1000 -> обем (литри)
- # процент заета част -> /100 -> число
- # нужни литри = обем в литри * (1 - процент заета част)
- # принтираме нужните литри
- length = int(input())
- width = int(input())
- height = int(input())
- percent = float(input())
- volume = length * width * height
- volume_liters = volume / 1000 #volume * 0.001
- occupied_part = percent / 100 #percent * 0.01
- need_liters = volume_liters * (1 - occupied_part)
- print(need_liters)
Advertisement
Add Comment
Please, Sign In to add comment