Aug 16, 2024
Python program to get Fibonacci series between 0 to 50
x,y=0,1
while y<50:
print(y,”,”,end=’’)
x,y=y,x+y
Output:
1 ,1 ,2 ,3 ,5 ,8 ,13 ,21 ,34 ,
Python program to get Fibonacci series between 0 to 50
x,y=0,1
while y<50:
print(y,”,”,end=’’)
x,y=y,x+y
Output:
1 ,1 ,2 ,3 ,5 ,8 ,13 ,21 ,34 ,