Advertisement
eNeRGy90

Untitled

Nov 29th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. shirochina = int(input())
  2. daljina = int(input())
  3. visochina = int(input())
  4.  
  5. area = shirochina * visochina * daljina
  6.  
  7. while True:
  8.     computers = input()
  9.     if computers == "Done":
  10.         print(f"{area} Cubic meters left.")
  11.         break
  12.     else:
  13.         computers = int(computers)
  14.  
  15.     area -= computers
  16.  
  17.     if area < 0:
  18.         print(f"No more free space! You need {abs(area)} Cubic meters more.")
  19.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement