Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (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