Write a recursive function definition for a function that has one parameter
n of type int and that returns the nth Fibonacci number. See Programming Project 10 in Chapter 3 for the definition of Fibonacci numbers. Embed the function in a program and test it.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.