donmike25 icon

ecp1016 tutorial 3(1)

donmike25 | PRO | 06/27/13 01:19:50 PM UTC | 0 ⭐ | 211 👁️ | Never ⏰ | []
C |

440 B

|

None

|

0 👍

/

0 👎

#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