SHARE
TWEET

Bonus Points

Sim0o0na May 3rd, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top