In C++ how do you raise to a power? How would I enter this instruction P = Ar/ 1 - (1+r) to the n power?
Printable View
In C++ how do you raise to a power? How would I enter this instruction P = Ar/ 1 - (1+r) to the n power?
You can use the pow(double, double) function in <cmath> (with the std namespace) to raise the first number entered to the power of the second.