Created
June 26, 2023 13:59
-
-
Save Luna-Klatzer/6134a22f90c0af803a80b88e7de1976c to your computer and use it in GitHub Desktop.
Simple Kipper program to calculate the power-to of two numbers
This file contains hidden or 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
def pow(base: num, powerTo: num) -> num { | |
return base ** powerTo; | |
} | |
var result: num = pow(2, 8); // -> 256 | |
print(result as str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment