Spocoman

Pool Day

Mar 15th, 2022 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import math
  2.  
  3. people = int(input())
  4. entrance = float(input())
  5. desk_chair = float(input())
  6. umbrella = float(input())
  7.  
  8. entrance_price = people * entrance
  9. desk_chair_price = math.ceil(people * 0.75) * desk_chair
  10. umbrella_price = math.ceil(people / 2) * umbrella
  11.  
  12. print(f"{entrance_price + desk_chair_price + umbrella_price:.2f} lv.")
  13.  
Add Comment
Please, Sign In to add comment