Files

4 lines
103 B
Common Lisp

(define (fib x)
(cond ((eq? x 0) 0)
((eq? x 1) 1)
(#t (+ (fib (- x 1)) (fib (- x 2))))))