Advertisement
zarkoto223

Conditional Statements - Exercise - 02.Bonus Score

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