#include // file: moneyD5.cc // Using extra functions // N = 5 // 2 * $0.01 per function call // N LEVELS of function calls void Money5() { cout << " $0.01 "; cout << " $0.01 "; } void Money4() { Money5(); Money5(); } void Money3() { Money4(); Money4(); cout << endl; } void Money2() { Money3(); Money3(); } int main() { Money2(); Money2(); return 0; } Sample output: $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 > $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 > $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 > $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01 $0.01