Power

From mojo_puzzler
Revision as of 15:50, 17 November 2023 by Gneale (talk | contribs) (Created page with "===== Return to: Chialisp ===== ===== Return to: Recursive Functions ===== (defun power (X N) (if (= N 0) 1 (* X (power X (- N 1)))))")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)))))