FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-3/algorithms/recursion/Fibonacci-Series-by-python.py at master · iCodeIN/python-3 · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
iCodeIN
/
python-3
Public
forked from
AllAlgorithms/python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-3
/
algorithms
/
recursion
/
Fibonacci-Series-by-python.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 372 Bytes
Breadcrumbs
python-3
/
algorithms
/
recursion
/
Fibonacci-Series-by-python.py
Copy path
File metadata and controls
13 lines (11 loc) · 372 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
### Program to calculate fibonacci series
def
fibo
(
n
):
//
function
to
calculate
fibonacci
series
if
(
n
==
0
):
return
0
elif
(
n
==
1
):
return
1
else
:
return
(
fibo
(
n
-
1
)
+
fibo
(
n
-
2
))
num
=
int
(
input
(
"Enter a number: "
))
//
enter
number
upto
which
you
want
to
calculate
fibonacci
series
for
n
in
range
(
0
,(
num
+
1
)):
print
(
fibo
(
n
),
end
=
" "
)
Back
|
FazBrowse Home
|
New Git URL