Guest User

Untitled

a guest
Jan 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. monthlyPayment = 10
  2. balance = 900
  3. annualInterestRate = .2
  4. testBalance = balance
  5.  
  6. while testBalance >= 0:
  7.     for month in range(1,13):
  8.         testBalance = (testBalance - (monthlyPayment)*(1+(annualInterestRate/12)))
  9.     if testBalance >= 0:
  10.         testBalance = balance
  11.     monthlyPayment += 10
  12.  
  13. print('Lowest Payment: ' + str(monthlyPayment))
Add Comment
Please, Sign In to add comment