Arithmetic/Integer: Difference between revisions

Line 428:
 
Serves 5.</lang>
 
=={{header|Clipper}}==
<lang clipper>Function( a, b )
? "a+b", a + b
? "a-b", a - b
? "a*b", a * b
// The quotient isn't integer, so we use the Int() function, which truncates it downward.
? "a/b", Int( a / b )
// Remainder:
? "a%b", a % b
// Exponentiation is also a base arithmetic operation
? "a**b", a ** b
Return Nil</lang>
 
=={{header|Clojure}}==
Anonymous user