how to get o/p of pow function as integer in cpp code example Example: pow in c++ #include <cmath> pow(base, exponent);