Advertisement
aneliabogeva

Moving

May 13th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. width = int(input())
  2. length = int(input())
  3. height = int(input())
  4.  
  5. volume = width * length * height
  6.  
  7. command = input()
  8.  
  9. while command != "Done":
  10. box = int(command)
  11. volume = volume - box
  12. if volume < 0:
  13. print(f"No more free space! You need {abs(volume)} Cubic meters more.")
  14. break
  15. else:
  16. command = input()
  17. if command == "Done":
  18. print(f"{volume} Cubic meters left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement