RosettaCodeData/Task/Exponentiation-operator/AutoHotkey/exponentiation-operator.ahk
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

9 lines
87 B
AutoHotkey

MsgBox % Pow(5,3)
MsgBox % Pow(2.5,4)
Pow(x, n){
r:=1
loop %n%
r *= x
return r
}