Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- w = int(input())
- l = int(input())
- h = int(input())
- all_space = w * l * h
- boxes = input()
- while not boxes == "Done":
- all_space -= int(boxes)
- if all_space <= 0:
- print(f"No more free space! You need {abs(all_space)} Cubic meters more.")
- break
- boxes = input()
- if boxes == "Done":
- print(f"{all_space} Cubic meters left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement