Sign in
go
/
website
/
6936be3fa76ee88deed8d1c06c83ae2891782aaf
/
.
/
_content
/
talks
/
2014
/
static-analysis
/
fib.go
blob: e0c946221b4464acf69ce0e07423cbc3518ce2ac [
file
] [
log
] [
blame
]
// +build ignore,OMIT
package main
import "fmt"
func fib(x int) int {
if x < 2 {
return x
}
return fib(x-1) + fib(x-2)
}
func main() {
fmt.Println(fib(7))
}