Fibonacci series

Hey internet mates here we are going to make a python program to generate fibonacci series upto given terms.

Program code:-
def fibo(z,x,y):
    if x>0:
        d=y+x
        print(d)
        i=d
        y=x
        x=i
        fibo(z-1,x,y)
z=int(input("Enter no:-"))
print(0)
print(1)
print(z-2,1,0)

Leave a Comment

Your email address will not be published. Required fields are marked *