RosettaCodeData/Task/Exponentiation-operator/Forth/exponentiation-operator-1.fth

3 lines
55 B
Forth
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
: ** ( n m -- n^m )
1 swap 0 ?do over * loop nip ;