> Math in C++ > Power
>>> Does anyone know how to get the Nth power of the variable A? let's say N=15, A=15, then 15^15 is the answer.
Anyone know how to do that in C++? In Win32 and in Console.,
Printable View
> Math in C++ > Power
>>> Does anyone know how to get the Nth power of the variable A? let's say N=15, A=15, then 15^15 is the answer.
Anyone know how to do that in C++? In Win32 and in Console.,
Hope that helps :)Code:#include <cmath>
using namespace std;
// ...
pow(x, y);