Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. w = int(input())
  2. l = int(input())
  3. h = int(input())
  4.  
  5. all_space = w * l * h
  6. boxes = input()
  7.  
  8. while not boxes == "Done":
  9.     all_space -= int(boxes)
  10.  
  11.     if all_space <= 0:
  12.         print(f"No more free space! You need {abs(all_space)} Cubic meters more.")
  13.         break
  14.     boxes = input()
  15. if boxes == "Done":
  16.     print(f"{all_space} Cubic meters left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement