Skip to content

Instantly share code, notes, and snippets.

@mulbc
Created April 17, 2013 09:37
Show Gist options
  • Save mulbc/5403043 to your computer and use it in GitHub Desktop.
Save mulbc/5403043 to your computer and use it in GitHub Desktop.
Sqwiggle
package main
import "fmt"
func fact(n int) int {
if n == 0 {
return 1
}
return n * fact(n-1)
}
func main() {
fmt.Println(fact(7))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment