Advertisement
CR7CR7

bonus score

Feb 14th, 2021
506
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. number = int(input())
  2. bonus = 0
  3. if number <= 100:
  4.     bonus = 5
  5. elif number > 1000:
  6.     bonus = number * 0.10
  7. else:
  8.     bonus = number * 0.20
  9.     if number % 2 == 0:
  10.         bonus += 1
  11.     elif number % 10 == 5:
  12.         bonus += 2
  13.         print(bonus)
  14.         print(bonus + number)
Advertisement
RAW Paste Data Copied
Advertisement