kotlin/fibonacci/main.kt · 81 字节 · 下载原文
fun fib(n: Int): Int { if (n <= 1) return n return fib(n - 1) + fib(n - 2) }