<gh_stars>0

initialBalance = float(raw_input("Enter the outstanding balance on your credit card: "))
interestRate = float(raw_input("Enter the annual credit card interest rate as a decimal: "))


monthlyPayment = 0
monthlyInterestRate = interestRate / 12
balance = initialBalance


while balance > 0:

    monthlyPayment += 10
    balance = initialBalance
    numMonths = 0


    while numMonths < 12 and balance > 0:

        numMonths += 1


        interest = monthlyInterestRate * balance


        balance -= monthlyPayment

        # Add interest
        balance += interest

# Round final balance to 2 decimal places
balance = round(balance, 2)

print "RESULT"
print "Monthly payment to pay off debt in 1 year:", monthlyPayment
print "Number of months needed:", numMonths
print "Balance:", balance

initialBalance = float(raw_input("Enter the outstanding balance on your credit card: "))
interestRate = float(raw_input("Enter the annual credit card interest rate as a decimal: "))


monthlyPayment = 0
monthlyInterestRate = interestRate / 12
balance = initialBalance


while balance > 0:

    monthlyPayment += 10
    balance = initialBalance
    numMonths = 0


    while numMonths < 12 and balance > 0:

        numMonths += 1


        interest = monthlyInterestRate * balance


        balance -= monthlyPayment

        # Add interest
        balance += interest

# Round final balance to 2 decimal places
balance = round(balance, 2)

print "RESULT"
print "Monthly payment to pay off debt in 1 year:", monthlyPayment
print "Number of months needed:", numMonths
print "Balance:", balance
# Add interest # Round final balance to 2 decimal places