Skip to content

Commit f81c771

Browse files
committedMay 4, 2020
1051 - Taxes
1 parent d7adbb8 commit f81c771

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
 

‎Beginner/1051.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
salary = float(input())
2+
3+
if salary <= 2000.00 :
4+
print("Isento")
5+
else:
6+
tax = salary - 2000
7+
if tax >= 0.01:
8+
if tax <= 1000:
9+
tribute = tax * 0.08
10+
tax = 0
11+
else:
12+
tribute = 1000 * 0.8
13+
tax -= 1000
14+
if tax >= 0.01:
15+
if tax <= 1500:
16+
tribute += (tax * 0.18)
17+
tax = 0
18+
else:
19+
tribute += (1500 * 0.18)
20+
tax = tax - 1500
21+
if tax >= 0.01:
22+
tribute += (tax * 0.28)
23+
24+
print("R${:.2f}".format(tribute))

0 commit comments

Comments
 (0)
Please sign in to comment.