Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python program for printing fibonacci numbers

#Python program to generate Fibonacci series Program using Recursion
def Fibonacci_series(Number):if(Number == 0):
    return 0elif(Number == 1):
    return 1else:
    return (Fibonacci_series(Number - 2) + Fibonacci_series(Number - 1))

n = int(input("Enter the value of 'n': "))
print("Fibonacci Series:", end = ' ')
for n in range(0, n):
  print(Fibonacci_series(n), end = ' ')
Source by www.faceprep.in #
 
PREVIOUS NEXT
Tagged: #python #program #printing #fibonacci #numbers
ADD COMMENT
Topic
Name
9+7 =