Skip to content

Commit fec4b95

Browse files
authored
fixed buggy value
1 parent 3f7309b commit fec4b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classwork_and_assignment/tax_calculator.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ void main()
2424
}
2525
else
2626
{
27-
taxAmount = (0.1 * 10000) + (0.15 * 10000) + (0.2 * 30000) + (0.25 * (income - 50000));
27+
taxAmount = (0.1 * 10000) + (0.15 * 10000) + (0.2 * 20000) + (0.25 * (income - 50000));
2828
}
2929

3030
totalAmountWithTax = income + taxAmount;
3131

3232
printf("The total amount with %f tax is %f", taxAmount, totalAmountWithTax);
33-
}
33+
}

0 commit comments

Comments
 (0)