Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = int(input())
- bonus = 0
- if number <= 100:
- bonus = 5
- elif number > 1000:
- bonus = number * 0.10
- else:
- bonus = number * 0.20
- if number % 2 == 0:
- bonus += 1
- elif number % 10 == 5:
- bonus += 2
- print(bonus)
- print(bonus + number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement