Computer Science, asked by keerthisaa16, 5 hours ago

write a function program in python to find the fibonacci number.​

Answers

Answered by MrAnsari49
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 bhakti4616
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