...

/

Challenge 3: The nth Fibonacci Number

Challenge 3: The nth Fibonacci Number

Given an index, find the nth Fibonacci number.

Problem Statement

Implement a function that takes a variable testVariable and finds the number that is placed at that index in the Fibonacci sequence.

What is the Fibonacci Sequence?

The Fibonacci sequence is one of the most famous sequences in mathematics. Each number in the sequence is the sum of the two numbers that precede it.

So, the sequence goes:

$ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34 … $

Indexing starts at 00. Therefore, at index 00 ...

Access this course and 1400+ top-rated courses and projects.