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

Function main

Examples/NoModules/Appendix A/ExA_08/ExA_08.cpp:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6/*extern*/ int power_range; // Not an unreasonable first attempt, right?
7
8int main()
9{
10 for (int i{ -power_range }; i <= power_range; ++i) // Calculate powers of 8
11 std::cout << std::format("{:10}\n", power(8.0, i));
12 std::cout << std::endl;
13}

Callers

nothing calls this directly

Calls 1

powerFunction · 0.70

Tested by

no test coverage detected