$\require{cancel}$
get interest rate from the user get principal from the user get time from the user interest = principal * rate * time payment = principal + interest print result
// Convert the percent to a decimal if interestRate > 1 interestRate = interestRate / 100
while principal > 0
// deduct the monthly payment
principal = principal - monthlyPayment
// calculate one month interest
interest = principal*interestRate/12
principal = principal + interest
get interest rate from the user get principal from the user get time from the user Call Calculate Results ...