Input Basic Salary. Find and display Income Tax. Income Tax is calculated as follows:
Input Basic Salary. Find and display Income Tax. Income Tax is calculated as follows:
Basic Salary | Income Tax |
---|---|
First 1000 | Nil |
Next 15 | 5% |
Rest | 10% |
#include< #include< void main( ) { float bs, it; clrscr( ); printf("Enter Basic Salary"); scanf("%f", &bs); if (bs < 1000) it = 0; else if (bs < 2500) it = (bs - 1000)*5/100; else it = 75 + (bs - 2500)*10/100; printf("\n Income Tax is = %.2f\n", it); getch( ); } |
---|
0 comments:
Post a Comment