Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fibonacci series in python

def Fab(num):
    x=0
    y=1
    while(1):
        print(x)
        fab=x+y
        x=y
        y=fab
        if x>=num:
            break

Fab(100)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #fibonacci #series #python
ADD COMMENT
Topic
Name
2+6 =