Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Integer-comparison/Toka/integer-comparison.toka
Normal file
9
Task/Integer-comparison/Toka/integer-comparison.toka
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[ ( a b -- )
|
||||
2dup < [ ." a is less than b\n" ] ifTrue
|
||||
2dup > [ ." a is greater than b\n" ] ifTrue
|
||||
= [ ." a is equal to b\n" ] ifTrue
|
||||
] is compare-integers
|
||||
|
||||
1 1 compare-integers
|
||||
2 1 compare-integers
|
||||
1 2 compare-integers
|
||||
Loading…
Add table
Add a link
Reference in a new issue