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