Fibonacci Sequence
Develop an application to display n digits of the Fibonacci Sequence.
Fibonnaci Sequence is defined as the sum of the previous 2 numbers equals the next number.
0,1,1,2,3,5,8,13,21,34,55,89,144
- Application shall ask user for number of entries of the sequence. (First entry is zero, second is 1, etc)
- Application will then display n number of entries, each on a new line.
- Lines shall be formatted as such
f(x) = n
Where x is the number of the entry, and n is the actual Fibonacci number.
- For more information on the Fibonnaci Sequence: Fibonacci Sequence
- Hint: Use a
for
loop.
Send me a link on slack of your published page when completed.
Please try to do this without looking up any hints online! Think through the loop logic.