I'm just learning C++ and need some help with formatting a proper calculation to get a compounded interest using an exponent. I'm basing my formula on
P*(1+rate/t)^t but getting errors and the wrong output.
Thats a good one, the pow function from the <cmath> header should help you implement the compound interest formula.
I however have a similar challenge that requires the use of a loop structure to calculate the compound interest of initial investment 2600 at an annual interest rate of 5%, you should assume the interest is paid annually for 10 years.