Created
February 17, 2016 07:40
-
-
Save craftbyte/32a7cc84f4c07730229e to your computer and use it in GitHub Desktop.
Fibonacci, for R2a
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 fibonacci(stevilo): | |
fib1, fib2 = 1, 1 | |
for i in range(stevilo): | |
print(fib1) | |
fib1, fib2 = fib2, fib1+fib2 | |
x = int(input("Pusi kurac: ")) | |
fibonacci(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment