how to calculate power of large numbers c++ code example Example: create large integers with powers of 10 cpp int large_integer = pow(10, 7);