RosettaCodeData/Task/Exponentiation-operator/EasyLang/exponentiation-operator.easy

14 lines
162 B
Text
Raw Permalink Normal View History

2023-10-02 18:11:16 -07:00
func mypow n exp .
r = 1
if exp < 0
exp = -exp
n = 1 / n
.
for i to exp
r *= n
.
return r
.
print mypow pi 2
print mypow 2 -2