Power

From mojo_puzzler
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Return to: Chialisp
Return to: Recursive Functions
(defun power (X N) 
  (if (= N 0) 
  1 
  (* X (power X (- N 1)))))