RosettaCodeData/Task/Integer-comparison/E/integer-comparison.e
2023-07-01 13:44:08 -04:00

6 lines
231 B
Text

def compare(a :int, b :int) {
println(if (a < b) { `$a < $b` } \
else if (a <=> b) { `$a = $b` } \
else if (a > b) { `$a > $b` } \
else { `You're calling that an integer?` })
}