I believe my program is still going through the if statements after it is declared invalid. It should print invalid filling status or invalid exemption status on the same line w
change this
else
{
printf("\n**** Invalid filling status ****");
}
if (taxExemptions > 12 || taxExemptions < 0)
{
printf("\n**** Invalid exemptions status ****");
}
to
else
{
printf("\n**** Invalid filling status ****");
continue;
}
if (taxExemptions > 12 || taxExemptions < 0)
{
printf("\n**** Invalid exemptions status ****");
continue;
}