0
365views
Write a python program for Fibonacci sequence
1 Answer
0
7views

* Fibonacci Sequence is*

0 1 1 2 3 5 8 13 21 34 55 89

Explanation

Iteration 1 :- a=0 b=1 c=a + b

  • 3rd no(c) = 1st(a) + 2nd(b)

    3rd no(c) = 0 +1 = 1

Iteration 2 :- a=1 b=1 c=a + b

  • 4th no(c) = …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.