Sichanov

bonus score

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