RosettaCodeData/Task/Arithmetic-Integer/MAXScript/arithmetic-integer.max

9 lines
231 B
Plaintext

x = getKBValue prompt:"First number"
y = getKBValue prompt:"Second number:"
format "Sum: %\n" (x + y)
format "Difference: %\n" (x - y)
format "Product: %\n" (x * y)
format "Quotient: %\n" (x / y)
format "Remainder: %\n" (mod x y)