RosettaCodeData/Task/Integer-comparison/Forth/integer-comparison.fth

5 lines
151 B
Forth
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
: 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 ;