Modify fibo () (Figure 9–33) so that it prints out a message at the beginning and end of each invocation. These messages show the history of the call stack. For example, if fibo(4) is invoked, the text in Figure 9–36 should be printed. (Hint: For the indentation, pass a String of spaces as an argument. On a recursive invocation, pass a slightly longer String.)
Figure 9–33
Figure 9–36
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here