Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- given_number = int(input())
- bonus1 = 0
- bonus2 = 0
- bonus3 = 0
- bonus4 = 0
- bonus5 = 0
- total_bonus_points = 0
- total_points = 0
- if given_number <= 100:
- bonus1 = 5
- if given_number > 100 and given_number <= 1000:
- bonus2 = given_number * 0.20
- if given_number > 1000:
- bonus3 = given_number * 0.10
- if given_number % 2 == 0:
- bonus4 = 1
- if given_number % 10 == 5:
- bonus5 = 2
- total_bonus_points = bonus1 + bonus2 + bonus3 + bonus4 + bonus5
- total_points = given_number + total_bonus_points
- print(total_bonus_points)
- print(total_points)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement