Advertisement
simeonshopov

Bonus Score

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