Created
March 30, 2018 16:49
-
-
Save ridvanbaluyos/d81d19a11b173b6261ed895766107388 to your computer and use it in GitHub Desktop.
Compute for the Eth Power of B using Common Lisp
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 power (B E) | |
"Compute for the Eth Power of B." | |
(if (= E 1) | |
B | |
(* B (power B (- E 1))))) | |
; or (* B (power B (1- E))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment