Created
July 26, 2013 16:21
-
-
Save kvarga/6090202 to your computer and use it in GitHub Desktop.
fibonacci
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
package main | |
import ( | |
"log" | |
) | |
func main() { | |
var a, b, c uint64 | |
a = 0 | |
b = 1 | |
log.Println(b) | |
for cnt := 0; cnt < 10000; cnt++ { | |
c = a + b | |
a = b | |
b = c | |
log.Println(c) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment