Formula Help Needed

How can I express this formula in c++?

Amount = Principal*(1+r/n)^((n*t))

Thanks in advance.
For exponentiation, use http://cplusplus.com/reference/clibrary/cmath/pow/
I don't see what else could be the problem.
Providing you named them as variables, what you've typed is perfectly valid C++ syntax (with the exception of a lacking terminating character).
Topic archived. No new replies allowed.