Fibonaci Generator


7. Write a python program to get the Fibonacci series between 0 to  50


#Solution:

x,y = 0,1while y<50:
    print(y)
    x,y = y, x+y






No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...