Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- ship_wigh = float(input())
- ship_lenght = float(input())
- ship_heigh = float(input())
- astronaphts_height = float(input())
- volume_ship = ship_wigh * ship_lenght * ship_heigh
- volume_room = 2 * 2 * (astronaphts_height + 0.40)
- space = math.floor(volume_ship / volume_room)
- if space < 3:
- print(f"The spacecraft is too small.")
- elif space >= 3 and space <= 10:
- print(f"The spacecraft holds {space} astronauts.")
- else:
- print("The spacecraft is too big.")
Advertisement
Add Comment
Please, Sign In to add comment