Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. balance = 4773
  2. annualInterestRate = 0.2
  3. aIR = annualInterestRate
  4. mIR = aIR / 12
  5. minPay = 10
  6. remain = balance
  7.  
  8. while remain >= 0:
  9.     minPay += 10
  10.     month = 0    
  11.    
  12.     while month < 12 and remain >= 0:
  13.         remain = remain - minPay
  14.         remain = remain + (remain * mIR)
  15.         month += 1
  16.            
  17. print(minPay)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement