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

9 lines
173 B
Plaintext

def arithmetic(a :int, b :int) {
return `$\
Sum: ${a + b}
Difference: ${a - b}
Product: ${a * b}
Quotient: ${a // b}
Remainder: ${a % b}$\n`
}