Hey all, I'm pretty new to C++ so hang with me. I am writing a program to calculate a car loan repayment and I am having issues with what my equation is outputting versus what I should actually be getting. any help would be greatly appreciated.
here is the equation we should be using:
monthly payments= principal * r * (1+r)^n / ((1+r)^n - 1)