RosettaCodeData/Task/Arithmetic-Integer/Avail/arithmetic-integer.avail

13 lines
308 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Method "arithmetic demo_,_" is
[
a : integer,
b : integer
|
Print: “a + b”;
Print: “a - b”;
Print: “a × b”; // or a * b
Print: “a ÷ b”; // or a / b, rounds toward negative infinity
Print: “a mod b”; // sign matches second argument
Print: “a ^ b”;
];