RosettaCodeData/Task/Arithmetic-Integer/E/arithmetic-integer.e

9 lines
173 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
def arithmetic(a :int, b :int) {
return `$\
Sum: ${a + b}
Difference: ${a - b}
Product: ${a * b}
Quotient: ${a // b}
Remainder: ${a % b}$\n`
}