Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- balance = 3926
- annualInterestRate = 0.2
- MP = 10
- for month in range (0,12):
- while balance >= 0:
- remaining = balance
- monthlyInterestRate = (annualInterestRate)/12
- balance = (remaining - MP) * (1 + monthlyInterestRate)
- if remaining < 0:
- break
- else:
- MP += 10
- print 'Lowest Payment: ', +round(MP)
Add Comment
Please, Sign In to add comment