RosettaCodeData/Task/Arithmetic-Integer/Mathematica/arithmetic-integer.math
2023-07-01 13:44:08 -04:00

9 lines
313 B
Text

a = Input["Give me an integer please!"];
b = Input["Give me another integer please!"];
Print["You gave me ", a, " and ", b];
Print["sum: ", a + b];
Print["difference: ", a - b];
Print["product: ", a b];
Print["integer quotient: ", Quotient[a, b]];
Print["remainder: ", Mod[a, b]];
Print["exponentiation: ", a^b];