0
Python
If n <= 1 : return n else: return(recur_fibo(n-1) + recur_fibo(n-2)) n term if n term <=0: print (“please enter a postive integer”) else: print (“Fibonacci sequence”) for i in range (nterms): print (recur_fibo(i)) Whats wrong?
3 Respostas
If n <= 1 : return n else: return(recur_fibo(n-1) + recur_fibo(n-2)) n term if n term <=0: print (“please enter a postive integer”) else: print (“Fibonacci sequence”) for i in range (nterms): print (recur_fibo(i)) Whats wrong?