Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python fiboncci

n = int(input("say the nth term of the Fibonacci Series"))
a,c = 0,0
b = 1
for ele in range(0,n):
      print(a,end=' ')
      c = a + b
      a = b
      b = c
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #python #fiboncci
ADD COMMENT
Topic
Name
4+9 =