RosettaCodeData/Task/Integer-comparison/Forth/integer-comparison.fth
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

4 lines
151 B
Forth

: compare-integers ( a b -- )
2dup < if ." a is less than b" then
2dup > if ." a is greater than b" then
= if ." a is equal to b" then ;