Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- width = float(input())
- length = float(input())
- height = float(input())
- average_height_astronauts = float(input())
- rocket = width * length * height
- rooms = (average_height_astronauts + 0.4) * 2 * 2
- available_rooms = math.floor(rocket / rooms)
- if available_rooms > 10:
- print("The spacecraft is too big.")
- elif 3 <= available_rooms <= 10:
- print(f"The spacecraft holds {available_rooms} astronauts.")
- else:
- print("The spacecraft is too small.")
Add Comment
Please, Sign In to add comment