Created
July 21, 2014 10:11
-
-
Save yask123/978d985c965c9e559ec8 to your computer and use it in GitHub Desktop.
Generating Fibonacci Series
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gen_fibo(n): | |
a,b=0,1 | |
while(a<n): | |
print(a,end=' ') | |
a,b=b,a+b | |
print() | |
gen_fibo(100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment