write a program in recursive sum of Fibonacci series in python
Answers
Answered by
0
Explanation:
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
Computer Science,
1 month ago
Math,
1 month ago
History,
2 months ago
English,
10 months ago
Math,
10 months ago