// Program: power8_exact.cpp // Raise a number to the eighth power, // using integers of arbitrary size #include #include int main() { // input std::cout << "Compute a^8 for a =? "; ifmp::integer a; std::cin >> a; // computation ifmp::integer b = a * a; // b = a^2 b = b * b; // b = a^4 // output b * b, i.e., a^8 std::cout << a << "^8 = " << b * b << ".\n"; return 0; }