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