| 5 | extern double power(double x, int n); // Declaration of an external power() function |
| 6 | |
| 7 | int main() |
| 8 | { |
| 9 | for (int i{ -3 }; i <= 3; ++i) // Calculate powers of 8 |
| 10 | std::cout << std::format("{:10}\n", power(8.0, i)); |
| 11 | std::cout << std::endl; |
| 12 | } |