qse/ase/test/lsp/t4.lsp

8 lines
113 B
Plaintext
Raw Normal View History

2005-09-20 12:06:51 +00:00
;Compute the factorial of N.
(defun factorial (N)
(if (= N 1)
1
(* N (factorial (- N 1)))))
(factorial 10)