proc fib(n: int): int = if n <= 1: return n return fib(n-1) + fib(n-2) for i in 0..10: echo "fib(", i, ") = ", fib(i)