2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
17
Task/Integer-comparison/Elena/integer-comparison.elena
Normal file
17
Task/Integer-comparison/Elena/integer-comparison.elena
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#import system.
|
||||
#import extensions.
|
||||
|
||||
#symbol program =
|
||||
[
|
||||
#var a := console readLine toInt.
|
||||
#var b := console readLine toInt.
|
||||
|
||||
(a < b)
|
||||
? [ console writeLine:a:" is less than ":b. ].
|
||||
|
||||
(a == b)
|
||||
? [ console writeLine:a:" equals ":b. ].
|
||||
|
||||
(a > b)
|
||||
? [ console writeLine:a:" is greater than ":b. ].
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue