monthly payment from math to C++
so my problem is that i really don't know how to convert the formula from this question into C++
the monthly payment on a loan may be calculated by the formula
payment = (Rate * (1+Rate)^N ) * Loan / ((1+Rate)^N - 1)
rate is the monthly interest rate which is the annual interest rate divided by 12
12% annula interest rate would be 1 percent monthly interest. N is the number of payments
Loan is amount of loan
write a program that asks for there values and displays a report similiar to:
Loan amount: $ 10000.00
Monthly Interest Rate: 1%
Number of Payments: 36
Monthly Payment: $ 332.14
Amount Paid Back: $ 11957.15
Interest Paid: $ 1957.15