Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t_shirt_price = float(input())
- present_money = float(input())
- shorts_price = t_shirt_price * 0.75
- socks = shorts_price * 0.2
- shoes = (t_shirt_price + shorts_price) * 2
- total = (t_shirt_price + shorts_price + shoes + socks) * 0.85
- if total >= present_money:
- print(f"Yes, he will earn the world-cup replica ball!\nHis sum is {total:.2f} lv.")
- else:
- print(f"No, he will not earn the world-cup replica ball.\nHe needs {(present_money - total):.2f} lv. more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement