Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = float(input())
- d = float(input())
- v = float(input())
- sv = float(input())
- ship = s * d * v
- astronaut = (sv + 0.4) * 2 * 2
- team = int(ship / astronaut)
- if team < 3:
- print("The spacecraft is too small.")
- elif team > 10:
- print("The spacecraft is too big.")
- else:
- print(f'The spacecraft holds {team} astronauts.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement