so I'm tryna make a payment calculator which will ask the user to input a salary and it should show them everything(their net pay, their allowance, their salary etc.) and I am trying to make it so that if the number they put in is within a certain range the rest of the code will use a certain number but I am having a problem which is that only my else if statement works correctly. the if statement would execute but also show the else if statement also. Can you guys help?
Here's the part of code:
///Allowance
int catagory()
{
if ((income <= 150000) && (income >= 80000))
{
allowance = 8000;
printf("\nYour Allowance is: %d", allowance);
}
else if((income <= 79999) && (income >= 55000));
{
allowance = 6500;
printf("\nYour Allowance is: %d", allowance);
}
}