Anonymous user
Arithmetic/Integer: Difference between revisions
add E example
m (→[[Scheme]]) |
(add E example) |
||
Line 34:
std::cout << "a*b = " << a*b << "\n";
std::cout << "a/b = " << a/b << ", remainder " << a%b << "\n";
}
==[[E]]==
[[Category:E]]
def arithmetic(a :int, b :int) {
return `$\
Sum: ${a + b}
Difference: ${a - b}
Product: ${a * b}
Quotient: ${a // b}
Remainder: ${a % b}$\n`
}
|