Created
June 22, 2017 19:30
-
-
Save suchov/545b02275543b9f17c0424ee0ff62a72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monthlyPayment = 0 | |
monthlyInterestRate = annualInterestRate /12 | |
newbalance = balance | |
month = 0 | |
while newbalance > 0: | |
monthlyPayment += 10 | |
newbalance = balance | |
for month in range(1,13): | |
newbalance -= monthlyPayment | |
newbalance += monthlyInterestRate * newbalance | |
month += 1 | |
print("Lowest Payment: " + str(monthlyPayment)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment