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