본문 바로가기
python-algorithm

백준 14182 Tax

by 무적김두칠 2022. 3. 11.

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
    elseprint(returnIncome(income))
cs
반응형

댓글