Not sure if this is enough to go by, but this section of my code is not working, it keeps underlining the "else if" part saying it is expecting an expression, or a statement, then asks for a (. I can provide full code if needed I just feel like I am missing something obvious here. I've tried everything. Thanks!
if (total <= AMT1)
{
taxes = RATE1 * total;
printf("your tax rate is: %f\n", taxes);
}
else if
{
(total > 300 || total <= 450);
taxes = RATE2 * total;
printf("your tax rate is: %f\n", taxes);
}
else if
{
(total > 450);
taxes = RATE3 * total;
printf("your tax rate is: %f\n", taxes);
}
}
}