Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Integer-comparison/EMal/integer-comparison.emal
Normal file
16
Task/Integer-comparison/EMal/integer-comparison.emal
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
fun main = int by List args
|
||||
int a, b
|
||||
if args.length > 1
|
||||
a = int!args[0]
|
||||
b = int!args[1]
|
||||
else
|
||||
a = ask(int, "Enter the first integer ")
|
||||
b = ask(int, "Enter the second integer ")
|
||||
end
|
||||
writeLine("=== a <> b is " + (a <> b) + " ===")
|
||||
if a < b do writeLine(a + " < " + b) end
|
||||
if a == b do writeLine(a + " == " + b) end
|
||||
if a > b do writeLine(a + " > " + b) end
|
||||
return 0
|
||||
end
|
||||
exit main(Runtime.args)
|
||||
Loading…
Add table
Add a link
Reference in a new issue