Write a program to analyse a car loan. The user should enter the amount of the loan. The annual percentage rate of interest. And the duration of the loan in months.
Write a program to analyse a car loan. The user should enter the amount of the loan. The annual percentage rate of interest. And the duration of the loan in months. The formula for the monthly payment is: Monthly payment = (p * r) / (1 – (1 + r) ** (-n))