Advertisement
Sim0o0na

Bonus Points

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