Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- width = float(input())
- length = float(input())
- heigth = float(input())
- astHeigth = float(input())
- volume = width * length * heigth
- volumeRoom = (astHeigth + 0.40) * 2 * 2
- countAstr = (int) (math.floor(volume / volumeRoom))
- if countAstr >= 3 and countAstr <= 10:
- print("The spacecraft holds %d astronauts." % countAstr)
- elif countAstr < 3:
- print("The spacecraft is too small.")
- elif countAstr>10:
- print("The spacecraft is too big.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement