balance = (balance - monthly_principal);
monthly_principal = (monthly_payment - monthly_interest);
The monthly principal should be determined before it is subtracted from the balance, right?
As far as a print statement for paid in full, simply add a print statement after the loop.
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
Offline 4,043 posts
since Feb 2006