Created
January 1, 2016 00:57
-
-
Save munisystem/411d251625f9d9e3ce5a to your computer and use it in GitHub Desktop.
N!*(N-1)!*...*2!*1!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun factorial (num) | |
(cond ((= num 1) 1) | |
(t (* num (factorial (- num 1)))))) | |
(defun multfact (num) | |
(cond ((= num 1) 1) | |
(t (* (factorial num) (multfact (- num 1)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment