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