RosettaCodeData/Task/Arithmetic-Integer/MAXScript/arithmetic-integer.maxscript
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

8 lines
231 B
Text

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)