Skip to content

Commit 31905de

Browse files
shifting
1 parent b2eb5e7 commit 31905de

File tree

1 file changed

+68
-0
lines changed
  • BasicPythonScripts/Fibonacci Sequence Generator

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# FIBONACCI SEQUENCE GENERATOR
2+
It's a program where we play with mathematical integers and operation to genarate a unique series.
3+
4+
## **_Title_**
5+
To generate a seires called "Fibonacci Series"
6+
7+
## **_What it is ?_**
8+
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.
9+
10+
### _Explanation with the help of example :-_
11+
Predefined,
12+
13+
1st no.(F0) =0
14+
15+
2nd no.(F1) = 1
16+
17+
So the third number will be F2 = F0 + F1
18+
19+
Similarly the fourth number will be F3 = F1 + F2 ..........and so on
20+
21+
## **_Overview / Description_**
22+
User will enter how many number they want in a series and whole series will be printed.
23+
24+
## **_Workflow Steps_**
25+
1.)Firstly, the program will demand the number of terms u want to see in the series.
26+
27+
2.)Starting two digits are predefined a1=0 and a2=1.
28+
29+
3.)Now it will pass through the conditional statements :-
30+
31+
a.) case1 : If the entered digit is less than or equal to zero
32+
33+
b.) case2 : if the no. of digit is 1.
34+
35+
c.) case3 : Finally user input a valid no. of digit . Now the algorithm will follow.
36+
37+
4.) Entering in the while loop and following the commands for appropriate output.
38+
39+
40+
## **_Compilation Steps:_**
41+
1.) Run this program in a proper IDE e.g. Pycharm, VScode ,Jupyter notebook etc or any Online compiler like Repelit.
42+
43+
2.) Enter the number of terms.
44+
45+
3.) The output will show you the series.
46+
47+
## **_Screenshot : _**
48+
49+
### _CODE_
50+
![alt text](https://github.com/Priyanshi-Rai/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Fibonacci%20sequence%20%20generator/Images/fibonacci_%20series_code.png)
51+
52+
### _OUTPUTS_
53+
![alt text](https://github.com/Priyanshi-Rai/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Fibonacci%20sequence%20%20generator/Images/Fib_ouput1.png)
54+
55+
![alt text](https://github.com/Priyanshi-Rai/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Fibonacci%20sequence%20%20generator/Images/Fib_ouput2.png)
56+
57+
![alt text](https://github.com/Priyanshi-Rai/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Fibonacci%20sequence%20%20generator/Images/Fib_ouput3.png)
58+
59+
60+
## _For any query contact_:
61+
62+
📧raisahab.p2001@gmail.com
63+
64+
_** Author**_
65+
66+
Priyanshi Rai
67+
68+

0 commit comments

Comments
 (0)