So I'm trying to code a compounded interest calculated and I'm having trouble with the power function. It doesn't yield the correct results, I have no idea why. Thanks for the help!!
Looks fine to me. Maybe you can try double instead of float. But that shouldn't make much of a difference.
What is the current result? What is the result you expect?
pow() returns double, maybe cout has trouble dealing with this type.