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