Write a program to print Fibonacci series upto n terms without using any loop. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Write a program to print Fibonacci series upto n terms without using any loop.

Python program

20th Mar 2020, 6:57 PM
Rajneesh Singh
Rajneesh Singh - avatar
1 Respuesta
+ 1
https://code.sololearn.com/ceIU05lbocdH/?ref=app Here is my Fibonacci with recursion, btw, there is loop for printing elements so you should change the return statement in the function to print() statement and just execute function itself
21st Mar 2020, 12:34 AM
Hubert Lang
Hubert Lang - avatar