Advertisement
Jorell_Ramos_Sinaga

Untitled

Sep 19th, 2021
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. r = float(input())
  2.  
  3. if r <= 2000.00:
  4.     i = 0
  5.     print('Isento')
  6.    
  7. if 2000.00 < r <= 3000.00:
  8.     r8 = r - 2000.00
  9.     i = r8 * (8 / 100)
  10.    
  11. if 3000.00 < r <= 4500.00:
  12.     i8 = (8 / 100) * (1000.00)
  13.     r18 = r - 3000.00
  14.     i = r18 * (18 / 100) + i8
  15.    
  16. if r > 4500.00:
  17.     i8 = (8 / 100) * (1000.00)
  18.     i18 = (18 / 100) * (1500.00)
  19.     r28 = r - 4500.00
  20.     i = i18 + i8 + r28 * (28 / 100)
  21.  
  22. if r > 2000.00:
  23.     i = float(i)
  24.     print('R$ {:.2f}'.format(i))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement