Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
10
Task/Integer-comparison/Oforth/integer-comparison.oforth
Normal file
10
Task/Integer-comparison/Oforth/integer-comparison.oforth
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import: console
|
||||
|
||||
: cmpInt
|
||||
| a b |
|
||||
doWhile: [ System.Console askln asInteger dup ->a isNull ]
|
||||
doWhile: [ System.Console askln asInteger dup ->b isNull ]
|
||||
|
||||
a b < ifTrue: [ System.Out a << " is less than " << b << cr ]
|
||||
a b == ifTrue: [ System.Out a << " is equal to " << b << cr ]
|
||||
a b > ifTrue: [ System.Out a << " is greater than " << b << cr ] ;
|
||||
Loading…
Add table
Add a link
Reference in a new issue