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

Function mult

Exercises/NoModules/Chapter 08/Soln8_09.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13inline auto mult(long double l, long double r)
14{
15 static size_t count{};
16 std::cout << ++count << " multiplications" << std::endl;
17 return l * r;
18}
19
20// Recursive function to calculate x to the power n
21long double power(double x, int n)

Callers 1

powerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected