Sichanov

bonus score

Sep 19th, 2021
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. starting_points = int(input())
  2. bonus_points = 0
  3.  
  4. if starting_points <= 100:
  5.     bonus_points += 5
  6. elif 100 < starting_points <= 1000:
  7.     bonus_points = starting_points * 0.2
  8. else:
  9.     bonus_points = starting_points * 0.1
  10.  
  11. if starting_points % 2 == 0:
  12.     bonus_points += 1
  13.  
  14. if starting_points % 10 == 5:
  15.     bonus_points += 2
  16.  
  17. print(bonus_points)
  18. print(starting_points + bonus_points)
Advertisement
Add Comment
Please, Sign In to add comment