Question:

Program to print the Fibonacci Number

Program:

Explanation:

A Fibonacci sequence is the integer sequence of 0, 1, 1, 2, 3, 5, 8….

The first two terms are 0 and 1. All other terms are obtained by adding the preceding two terms

Ex: 5th term is sum of 4th and 3rd term;3=2+1

Output:

1.

2.
3.
Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Leave a Reply