By using this site, you agree to our Privacy Policy and our Terms of Use. Close
JazzyJeez said:

I'm sure someone will correct me, but I think you can use POW.

ie 

cout << "x to 3rd power is: " << pow (x, 3) <<  endl;


actually, it's the complete oposite process