Sign in
go
/
website
/
78a220a4fa2135bd9f9fab314d6eb550c270d925
/
.
/
_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))
}