hi im new to C++ and im trying to find the interest of an amount i have to enter and intial amount, enter a monthly deposit, a monthly interest rate and a duration in months and then to find the total amount after the set duration, my problem is i cant figure out how to add the interest rate after each month this is my code so far.
I would recommend that you try to do this in a spreadsheet first, to correct your math.
When you can do it right in a spreadsheet, the algorithm will become obvious.
Then coding it up in C++ should be a trivial exercise.