Professional Documents
Culture Documents
How Recursion Works
How Recursion Works
Please read the code in sequence from 1 to 8. I have annotated the code with value of “n” and
expression results
result = factR(n-1 (3)) means that value “3” is sent to factR function.
So, please read it and let me know if you are still not clear.
4: 5:
3: 6:
2: 7:
1: 8: