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