calculate income tax in C

 #include<stdio.h>

int main()

{

float tax = 0, income;

printf("Enter your income\n");

scanf("%f", &income);

if(income>=250000 && income<=500000){

tax = tax +0.05*(income - 250000);

}

if (income>=500000 && income<=1000000){

tax = tax + 0.20*(income - 500000);

}

if(income>=1000000 && income<=10000000){

tax = tax + 0.30*(income - 1000000);

}

printf("Your net income tax to be paid by on 25th on this month is %f", tax);

return 0;

}

Comments

Popular posts from this blog

create a num table in a new file in c

write a programme to compare time stamp in c

write a struct programme to keep bank details in c