Help!

can someone help me with these two errors.

double a_withholding_tax (int gross_pay, int dependants)
{
double with_tax = gross_pay * dependants;
if (dependants > 2)
{
with_tax = gross_pay * .15;
}
else if (dependants == 2)
{
with_tax = gross_pay * .18;
}
else if (dependants == 1)
{
with_tax = gross_pay * .20;
}
else (dependants == 0);
{
with_tax = gross_pay * .28;
}
return (with_tax);
}

and the error says
error: new declaration 'double a_wiithholding_tax (int, int)'

and the next error is


int a_withholding_tax (int gross_pay, int dependants);

error: ambiguates old declaration 'int a_withholding_tax(int, int)'

and i'm using code blocks
Last edited on
Are you sure the error is here?
well yea it says that the error is on that line.. but uhm yea i think i got i now.
Topic archived. No new replies allowed.