fmtmalvin

URI 1051

Sep 19th, 2021
621
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a = float(input())
  2.  
  3. if(0 < a < 2000):
  4.     print("Isento")
  5. elif(2000 < a <= 3000):
  6.     b = a - 2000
  7.     c = b * 0.08
  8.     print("R$ %.2f" %(c))
  9. elif(3000 < a < 4500):
  10.     b = a - 3000
  11.     c = (b * 0.18) + (1000 * 0.08)
  12.     print("R$ %.2f" %(c))
  13. else:
  14.     b = a - 4500
  15.     c = (b * 0.28) + (1500 * 0.18) + (1000 * 0.08)
  16.     print("R$ %.2f" %(c))
RAW Paste Data