Sign in
go
/
talks
/
a07c284bcf333dc17a1489fd441e8fccf1e01c2a
/
.
/
content
/
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))
}