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