bl00dt3ars

02. Bonus Score

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