Skip to content

Instantly share code, notes, and snippets.

@kunst1080
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunst1080/9429573 to your computer and use it in GitHub Desktop.
Save kunst1080/9429573 to your computer and use it in GitHub Desktop.
Fibonacci number on cmd.exe
set /a n1=1,n2=1 & for /L %a in (3,1,10) do @((set /a n3=n1+n2,n1=n2,n2=n3)>nul & echo %a:!n3!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment