#include<stdio.h>
int main ()
{
int income;
float tax;
printf("Enter Income:\n",income);
scanf("%d",&income);
if (income < 2500);
{
printf ("No Tax\n",tax);
}
else if(income=>2500 && income <3500);
{
tax=450;
printf("Tax: %f\n",tax);
}
else if (income >= 3500 && income <=4500);
{
tax=450+(10/100);
printf("Tax: %f\n",tax);
}
else if(income>6000);
{
tax=600+(20/100);
printf("Tax:%f\n",tax);
}
return 0;
}
Comments