RosettaCodeData/Task/Conditional-structures/Forth/conditional-structures-4.fth
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

6 lines
122 B
Forth

: test-case ( n -- )
CASE
0 OF ." Zero!" ENDOF
1 OF ." One!" ENDOF
." Some other number!"
ENDCASE ;