MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / div2

Function div2

week07/examples/recursion.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void div2(double val)
13{
14
15 cout << "Entering val = " << val << endl;
16 if (val > 1.0)
17 div2( val / 2); // function calls itself
18 else
19 cout << "--------------------------" << endl;
20
21 cout << "Leaving val = " << val << endl;
22}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected