ok i got the pow formula to work. KNow my issues is with my AmountIntrest .
Code:
AmountInterest = a * (1 + i/12);
Here you are applying a years worth of interest each month. You read in an annual interest rate. As was done in the formula I provided, you have to adjust that for just one month.
so would that mean ti would have to write it as
Code:
AmountInterest = ( pow(1 + i / 12, n)*a;
This way it si deviding the months by the interest the * by the currentanount ler me knwo if you want to see the rest of the program.