How do I raise a number to a power?
2^1 2^2 2^3
etc...
pow() in the cmath library. More info here. Don't forget to put #include<cmath> at the top of the file.
#include<cmath>
1.4m articles
1.4m replys
5 comments
57.0k users