RosettaCodeData/Task/Conditional-structures/Forth/conditional-structures-4.fth
2023-07-01 13:44:08 -04:00

6 lines
122 B
Forth

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