I need to write a program whose output looks like:
I need to use a recursive function that takes in the the recursion depth from the user. I can't figure out how to keep track of the number of lines I print out, or how to indent the lines?Code:This line was output by call 1. This line was output by call 2. This line was output by call 3. This line was output by call 4. This line was ALSO output by call 4. This line was ALSO output by call 3. This line was ALSO output by call 2. This line was ALSO output by call 1.
Any ideas are appreciated.
Brian



LinkBack URL
About LinkBacks



(poor stack... eventually - talk about nickel and diming)