mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-19 09:25:30 +00:00
9 lines
92 B
Go
9 lines
92 B
Go
package main
|
|
|
|
func Fib(n int) int {
|
|
if n < 2 {
|
|
return n
|
|
}
|
|
return Fib(n-1) + Fib(n-2)
|
|
}
|