Power

From mojo_puzzler
Jump to navigation Jump to search
Return to: Chialisp
Return to: Recursive Functions
(defun power (X N) 
  (if (= N 0) 
  1 
  (* X (power X (- N 1)))))