Guest User

Untitled

a guest
Jan 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. balance = 5000
  2. annualInterestRate = 0.2
  3. payment = 0
  4. month = 0
  5. newBalance = balance
  6.  
  7. if newBalance > 0:
  8.     payment += 10
  9.     while month < 12:
  10.         newBalance = (newBalance - payment) * (1 + annualInterestRate / 12)
  11.         month += 1
  12.        
  13. else:
  14.     print ('Lowest Payment: ' + str (payment))
Add Comment
Please, Sign In to add comment