Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- rocket_wight = float(input())
- rocket_lenght = float(input())
- rocket_height = float(input())
- avarage_austro_height = float(input())
- rocket_area = rocket_height * rocket_lenght * rocket_wight
- room_area = (avarage_austro_height + 0.40) * 2 * 2
- max_austronauts = math.floor(rocket_area / room_area)
- if max_austronauts > 3 and max_austronauts < 10:
- print(f'The spacecraft holds {max_austronauts} astronauts.')
- elif max_austronauts < 3:
- print('The spacecraft is too small.')
- elif max_austronauts >= 10:
- print("The spacecraft is too big.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement