Advertisement
chunkyguy

sid

Jan 31st, 2011
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.08 KB | None | 0 0
  1. (defun factorial(n) (let ((sum 1)) (dotimes (x n) (setf sum (* sum (1+ x)))) sum))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement