January 29th, 2022
WAP to take employee’s salary as input from user and display the gross salary.
Where gross salary = basic salary + HRA + DA.
WAP to accept basic salary of a person. Calculate and display income tax to pay as per given criteria:
Annual Salary | Income tax |
---|---|
<= ₹2,50,000 | 0 |
> ₹2,50,000 and <= ₹5,00,000 | 10% |
> ₹5,00,000 and <= ₹10,00,000 | 20% |
> ₹10,00,000 | 30% |
Where: