source file name: incometax.C
#include <stdio.h>
int main()
{
long income,tax,taxamount;
//clrscr();
printf("\n enter your income");
scanf("%ld",&income);
if(income<250000)
{
printf(" you have no Tax ");
}
else
{
if(income>250000 && income<=500000)
{
taxamount=income-250000;
tax=taxamount*0.05;
}
if(income>500000 && income<=1000000)
{
taxamount=income-500000;
tax=taxamount*0.2;
}
if(income>1000000 )
{
taxamount=income-1000000;
tax=taxamount*0.3;
}
printf("\n your tax paid amount=%ld",tax);
}
//getch();
return 0;
}
output:
0 Comments
Post a Comment