Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- balance = 4773
- annualInterestRate = 0.2
- aIR = annualInterestRate
- mIR = aIR / 12
- minPay = 10
- remain = balance
- while remain >= 0:
- minPay += 10
- month = 0
- while month < 12 and remain >= 0:
- remain = remain - minPay
- remain = remain + (remain * mIR)
- month += 1
- print(minPay)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement