Skip to content

Instantly share code, notes, and snippets.

@nattybear
Created January 25, 2017 08:55
Show Gist options
  • Save nattybear/ce26a134fdaa2e8fe12745901db464e7 to your computer and use it in GitHub Desktop.
Save nattybear/ce26a134fdaa2e8fe12745901db464e7 to your computer and use it in GitHub Desktop.
def fibo(n):
a, b = 1, 1
c = 1
while True:
if n == c: break
print 'fibonacci %d = %d' % (c, a)
a, b = b, a+b
c = c + 1
n = input("[*] Please input biggest integer n (n>=2, f0=0, f1=1) : ") + 1
fibo(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment