Advertisement
BbJLeB

04. OwnBusiness

May 28th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. # 04. OwnBusiness
  2. roomWidth = int(input())
  3. roomLength = int(input())
  4. roomHeight = int(input())
  5. roomVolume = roomWidth * roomLength * roomHeight
  6. computerVolume = 0
  7. computerVolume = input()
  8. while not computerVolume == "Done":
  9.     roomVolume -= int(computerVolume)
  10.  
  11.     if roomVolume <= 0:
  12.         print(f"No more free space! You need {abs(roomVolume)} Cubic meters more.")
  13.         break
  14.     computerVolume = input()
  15.  
  16.  
  17. if computerVolume == "Done":
  18.     print(f"{roomVolume} Cubic meters left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement