Skip to content

Instantly share code, notes, and snippets.

@kvarga
Created July 26, 2013 16:21
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 kvarga/6090202 to your computer and use it in GitHub Desktop.
Save kvarga/6090202 to your computer and use it in GitHub Desktop.
fibonacci
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