Skip to content

Latest commit

 

History

History
 
 

Fibonacci Sequence Generator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

FIBONACCI SEQUENCE GENERATOR

It's a program where we play with mathematical integers and operation to genarate a unique series.

Title

To generate a seires called "Fibonacci Series"

What it is ?

The Fibonacci numbers, commonly denoted Fn, form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1.

Explanation with the help of example :-

Predefined,

1st no.(F0) =0

2nd no.(F1) = 1

So the third number will be F2 = F0 + F1

Similarly the fourth number will be F3 = F1 + F2 ..........and so on

Overview / Description

User will enter how many number they want in a series and whole series will be printed.

Workflow Steps

1.)Firstly, the program will demand the number of terms u want to see in the series.

2.)Starting two digits are predefined a1=0 and a2=1.

3.)Now it will pass through the conditional statements :-

                a.) case1 : If the entered digit is less than or equal to zero
                
                b.) case2 : if the no. of digit is 1.
                
                c.) case3 : Finally user input a valid no. of digit . Now the algorithm will follow.

4.) Entering in the while loop and following the commands for appropriate output.

Compilation Steps:

1.) Run this program in a proper IDE e.g. Pycharm, VScode ,Jupyter notebook etc or any Online compiler like Repelit.

2.) Enter the number of terms.

3.) The output will show you the series.

_Screenshot : _

CODE

alt text

OUTPUTS

alt text

alt text

alt text

For any query contact:

📧raisahab.p2001@gmail.com

** Author**

Priyanshi Rai