Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ main
Function
main
Examples/NoModules/Appendix A/ExA_07A/ExA_07A.cpp:7–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
#include
"Power.h"
6
7
int main()
8
{
9
for (int i{ -3 }; i <= 3; ++i) // Calculate powers of 8 from -3 to +3
10
std::cout << std::format(
"{:10}\n"
, power(8.0, i));
11
std::cout << std::endl;
12
}
Callers
nothing calls this directly
Calls
1
power
Function · 0.70
Tested by
no test coverage detected