Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ main
Function
main
Examples/Modules/Chapter 08/Ex8_01.cpp:22–29 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
20
}
21
22
int main()
23
{
24
// Calculate powers of 8 from -3 to +3
25
for (int i{ -3 }; i <= 3; ++i)
26
std::cout << std::format(
"{:10g}"
, power(8.0, i));
27
28
std::cout << std::endl;
29
}
30
Callers
nothing calls this directly
Calls
1
power
Function · 0.70
Tested by
no test coverage detected