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