Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puzzle = 2.60
- barbie = 3.00
- bear = 4.10
- minion = 8.20
- truck = 2
- discount = 0
- holiday_price = float(input())
- puzzle_orders = int(input())
- barbie_orders = int(input())
- bear_orders = int(input())
- minion_orders = int(input())
- truck_orders = int(input())
- money = puzzle * puzzle_orders + barbie * barbie_orders + bear * bear_orders + minion * minion_orders + truck * truck_orders
- total_orders = puzzle_orders + barbie_orders + bear_orders + minion_orders + truck_orders
- if total_orders >= 50:
- discount = money * 0.25
- money -= discount
- naem = money * 0.10
- money -= naem
- if holiday_price > money:
- print(f"Not enough money! {holiday_price - money:.2f} lv needed.")
- if holiday_price < money:
- print(f"Yes! {money - holiday_price:.2f} lv left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement