vieter/pieter/fibonacci.v

10 lines
104 B
Coq
Raw Normal View History

2022-01-08 23:14:07 +01:00
module fibonacci
pub fn fib(i int) int {
if i <= 1 {
return i
}
return fib(i - 1) + fib(i - 2)
}