Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Fibonacci Lisp
SUBMITTED BY:
Guest
DATE:
March 19, 2014, 6:44 p.m.
FORMAT:
Text only
SIZE:
170 Bytes
Raw
Download
Tweet
HITS:
6364
Go to comments
Report
;Écrire la fonction (fibo <n>)
(defun fibo(n)
(cond ( (= n 0) 0 )
( (= n 1) 1 )
( t (+ (fibo (- n 1) ) (fibo (- n 2) ) ) )
)
)
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus