about | help | code help+videos | done | prefs |
Fibonacci sequence and Fibonacci numbers are extremely famous. The sequence begins with 0, 1 and each subsequent number is the sum of the two numbers before it. Thus fib(0) = 0, fib(1) = 1, fib(n) = fib(n-1) + fib(n-2).
fibonacci(0) → 0 fibonacci(10) → 55 fibonacci(20) → 6765 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 4 Post-solution available
Copyright Nick Parlante 2017 - privacy