Recursive LISP function to find the power of a number October 16, 2012 Get link Facebook X Pinterest Email Other Apps (defun power(base exp) ( if (eq exp 0) 1 ( * base (power base (- exp 1)) ) ) ) power 3 2 = 9 Comments
Comments
Post a Comment