LearnPy Hub
← If…Else problems
Hard

Income Tax Slabs

Tax on yearly income: the first 350000 is free, the next 100000 is taxed 5%, the next 400000 10%, the next 500000 15%, and everything above that 20%. Read the income and print the tax with 2 decimals.

Input

One integer.

Output

One number.

Sample 1

Input
300000
Output
0.00

Sample 2

Input
450000
Output
5000.00
solution.py
Output appears here
Income Tax Slabs · Python practice problem · LearnPy Hub