VergeoPaw

1048

Sep 19th, 2021
897
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. salary = float(input())
  2. if 0 <= salary <= 400.00 :
  3.     persen = 15
  4.     salary2 = salary*15/100
  5.     total = salary + salary2
  6. elif 400.01 <= salary <= 800.00 :
  7.     persen = 12
  8.     salary2 = salary*12/100
  9.     total = salary + salary2
  10. elif 800.01 <= salary <= 1200.00 :
  11.     persen = 10
  12.     salary2 = salary*10/100
  13.     total = salary + salary2
  14. elif 1200.01<= salary <= 2000.00 :
  15.     persen = 7
  16.     salary2 = salary*7/100
  17.     total = salary + salary2
  18. elif salary > 2000.00 :
  19.     persen = 4
  20.     salary2 = salary*4/100
  21.     total = salary + salary2
  22. print("Novo salario: %.2f"%total)
  23. print("Reajuste ganho: %.2f"%salary2)
  24. print(f"Em percentual: {persen} %")
RAW Paste Data