Created
January 14, 2021 06:50
-
-
Save 0rbianta/41b00e4086c2fccd341bf04997c6f77f to your computer and use it in GitHub Desktop.
Fibonacci Numbers NodeJS
This file contains hidden or 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
build = 1; //start number=1 | |
rax = 0; //last used number | |
for(var i = 0;i<5;i++){ | |
tmp=build; | |
build+=rax; | |
rax=tmp; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment