Created
May 16, 2017 08:16
-
-
Save ehedaoo/03f1ef4f3989a1ac11b107919eb9c26e to your computer and use it in GitHub Desktop.
Print 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
# Print Fibonacci Series | |
a = 0 | |
b = 1 | |
test = int(input("Enter the range till you want the series: ")) | |
print(a) | |
print(b) | |
for i in range(test): | |
c = a+b | |
print(c) | |
a = b | |
b = c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment