Guest User

Untitled

a guest
Jan 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. Minimum_payment=0
  2. annualInterestRate=.2
  3. balance=4773
  4. while (balance > 0):
  5.     Minimum_payment=Minimum_payment+10
  6.     total_payment=0
  7.     for i in range(1,13):
  8.          interest=(balance - Minimum_payment) * annualInterestRate/12
  9.          balance=(balance - Minimum_payment+interest)
  10.          print balance #TO DEBUG THE BALANCE
  11. print("Minimum Monutly Payment: " + str(Minimum_payment))
Add Comment
Please, Sign In to add comment