desislava_topuzakova

05. Birthday party

Mar 9th, 2021
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. # наем на залата -> вход
  2. # торта = 20% от залата = 0.2 * залата
  3. # напитки = торта - 45% =  торта - 0.45 * торта
  4. # аниматор = 1 / 3 от залата = залата / 3
  5. # разходи = наем за залата + торта + напитки + аниматор
  6. # принтираме разходи
  7.  
  8. hall_rent = int(input())
  9. price_cake = 0.2 * hall_rent
  10. price_drinks = price_cake - 0.45 * price_cake
  11.             # price_cake * 0.55
  12. price_animator = hall_rent / 3
  13.  
  14. expenses = hall_rent + price_cake + price_drinks + price_animator
  15. print(expenses)
Advertisement
Add Comment
Please, Sign In to add comment