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

3 lines
55 B
Forth
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
: ** ( n m -- n^m )
1 swap 0 ?do over * loop nip ;