12 lines
317 B
Plaintext
12 lines
317 B
Plaintext
procedure Test( 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
|