0

I am trying to get the number of months on one side to pay a car loan off and then the other side to have a decrease in the money owned. I have been staring at this thing for about 2 hours and i dont understand why it won't subtract the monthly total per month. Any help would be greatly appreciated.

```
Month Money Owed
-----------------------
0 9775
1 9774
2 9773
3 9772
4 9771
5 9770
6 9769
7 9768
8 9767
9 9766
10 9765
```

Code:

```
int interest, principle, moneyowed, payment, monthly;
//these four lines are for the first month
cout <<"I have been loaned $10,000.00 for my vehicle." << endl;
moneyowed=10000.00;
interest =(moneyowed * .0075); //annual interest rate of 9% but .75% per month
payment = 300; //monthly payments of $300.00
principle=(payment-interest);
monthly=(moneyowed-principle);
cout <<"Month \t Money Owed" << endl;
cout <<"-----------------------"<<endl;
int num=0;
while (num<=10)
{
cout <<num << "\t\t" << (monthly--) << endl;
num++;
}
return 0;
}
```

*Edited 3 Years Ago by Nick Evan*: Fixed formatting