Fibonacci numbers are used as a very common example for teaching recursion.
fib 0 = 0 fib 1 = 1 fib n = fib (n-1) + fib (n-2)
Topic Id: 8585
Example Ids: 26849
This site is not affiliated with any of the contributors.
Content on the page is taken from Stack Overflow Documentation
This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service