Advertisement
DerioFT

1051.py

Sep 19th, 2021
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. salary = float(input())
  2.  
  3. if (salary > 0 and salary <= 2000.00):
  4.     print("Isento")
  5.  
  6. elif (salary > 2000.00 and salary <= 3000.00):
  7.     amount = salary - 2000.00
  8.     tax = amount * 8/100
  9.     print("R$ %.2f" % (tax))
  10.  
  11. elif (salary > 3000.00 and salary <= 4500.00):
  12.     amount = salary - 3000.00
  13.     tax = (1000 * 8/100) + (amount * 18/100)
  14.     print("R$ %.2f" % (tax))
  15.  
  16. elif (salary > 4500.00):
  17.     amount = salary - 4500.00
  18.     tax = (1000 * 8/100) + (1500 * 18/100) + (amount * 28/100)
  19.     print("R$ %.2f" % (tax))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement