+ 1
Challenge!For beginners!
Print 1 to 100 Fibonacci numbers! Specially in c related languages!
4 Respuestas
+ 5
def fibo(n):
if n in [0,1]:return 1
else:return fibo(n-1)
for i in range(100):print(fibo(i))
#Not beginner, but good Python solution
+ 2
a naive solution.
https://code.sololearn.com/ciWyJWHoYWTW/?ref=app
+ 1
or for a compact answer in python...
https://code.sololearn.com/cFvl2y7ruFma/?ref=app