RosettaCodeData/Task/Integer-comparison/EMal/integer-comparison.emal
2026-04-30 12:34:36 -04:00

16 lines
432 B
Text

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)