python-algorithm
백준 14182 Tax
무적김두칠
2022. 3. 11. 11:02
1
2
3
4
5
6
7
8
9
10
|
def returnIncome(income):
if income>5000000 : taxed= int(income*0.2)
elif income > 1000000: taxed = int(income * 0.1)
else : taxed = 0
return (income-taxed)
while 1:
income=int(input())
if income==0: break
else: print(returnIncome(income))
|
cs |
반응형