Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # наем на залата -> вход
- # торта = 20% от залата = 0.2 * залата
- # напитки = торта - 45% = торта - 0.45 * торта
- # аниматор = 1 / 3 от залата = залата / 3
- # разходи = наем за залата + торта + напитки + аниматор
- # принтираме разходи
- hall_rent = int(input())
- price_cake = 0.2 * hall_rent
- price_drinks = price_cake - 0.45 * price_cake
- # price_cake * 0.55
- price_animator = hall_rent / 3
- expenses = hall_rent + price_cake + price_drinks + price_animator
- print(expenses)
Advertisement
Add Comment
Please, Sign In to add comment