write a function program in python to find the fibonacci number.
Answers
Answered by
2
Answer:
Python Program to Display Fibonacci Sequence Using Recursion
def recur_fibo(n):
if n <= 1:
return n.
else:
return(recur_fibo(n-1) + recur_fibo(n-2))
# take input from the user.
nterms = int(input("How many terms? "))
# check if the number of terms is valid.
Explanation:
please mark me brainliests.Do follow for more answers.
Answered by
3
Python Program to Display Fibonacci Sequence Using Recursion
def recur_fibo(n):
if n <= 1:
return n.
else:
return(recur_fibo(n-1) + recur_fibo(n-2))
# take input from the user.
nterms = int(input("How many terms? "))
# check if the number of terms is valid.
Similar questions