Q. An employee to pay an income tax based on his gross annual income as follows:
| Annual gross income | Annual tax deduction (%) |
| Less than or equal to Rs. 10000 | 0% |
| Rs. 10001 to Rs. 50000 | Rs. 1000 + 10% of income |
| Rs. 50001 to Rs. 80000 | Rs. 5000 + 20% of income |
| > Rs. 80000 | Rs. 10000 + 30% of income |
WAP to compute and print the tax payable by a salaried person.