MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / main

Function main

Examples/NoModules/Appendix A/ExA_09/ExA_09.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5extern double power(double x, int n); // Declaration of an external power() function
6
7int 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}

Callers

nothing calls this directly

Calls 1

powerFunction · 0.70

Tested by

no test coverage detected