# Arup Guha
# 1/30/2012
# Prints out loan payments for 20 months.
# Assumes payment value entered covers initial monthly interest.

def main():

    # Get the user input.
    loan_amt = float(input("Enter loan amt."))
    apr = float(input("What is the APR?"))
    payment = float(input("What is your monthly payment?"))

    # Go through each month.
    month = 1;
    for i in list(range(20)):
        
	# First add the interest, then make the payment.
        loan_amt = loan_amt*(1 + apr/1200)
        loan_amt = loan_amt - payment

        # Print out what happened this month and advance the month.
        print("After month",month,"you owe",loan_amt)
        month = month + 1;

main()
