- 1

Write a program to print Fibonacci series using recursion ?

8th May 2018, 6:06 AM
Giridhari Paul
Giridhari Paul - avatar
4 Answers
8th May 2018, 6:34 AM
Rusty.Metal
0
https://code.sololearn.com/cBbhZmNWUTCM/?ref=app
10th May 2018, 7:43 PM
Denis Muơanović
Denis Muơanović - avatar
0
num = int(input()) #Entrada del usuario def fibonacci(n): if n == 0: return 0 elif n == 1: return 1 else: return fibonacci(n-1) + fibonacci(n-2) for i in range(num): print(fibonacci(i)) #Llamada de la funcion
12th Oct 2020, 12:02 PM
Kevin Rojas
Kevin Rojas - avatar
- 1
don't know if it's this what you're looking for: don't has to be the first 20 numbers. you can use a variable for the number of terms. https://code.sololearn.com/cXbdq0cz1Z65/?ref=app
8th May 2018, 7:20 AM
storm
storm - avatar