16 lines
432 B
Text
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)
|