My C program does not show the output.
My code in the C language:
int x = 0; // Installment
int y = 0 // Balance
for (i=1; i<=installment;i++)
{
printf("%d %d %d\n", i, x=totalFee/installment, y = totalFee-(totalFee/instalment));
}
Correct output:
Total fees: 300 Month Installment Balance 1 100 200 2 100 100 3 100 0
My output:
Total fees: 300 Month Installment Balance 1 100 200 2 100 200 3 100 200
This is just part of the code. Because this is the part where I have an issue. Other parts are fine.