Arithmetic/Integer: Difference between revisions
Content added Content deleted
m (→{{header|APL}}: Changed function name.) |
m (Lingo added) |
||
Line 2,024: | Line 2,024: | ||
print "The first raised to the power of the second is " ; first ^second |
print "The first raised to the power of the second is " ; first ^second |
||
</lang> |
</lang> |
||
=={{header|Lingo}}== |
|||
<lang Lingo>-- X, Y: 2 editable field members, shown as sprites in the current GUI |
|||
x = integer(member("X").text) |
|||
y = integer(member("Y").text) |
|||
put "Sum: " , x + y |
|||
put "Difference: ", x - y |
|||
put "Product: " , x * y |
|||
put "Quotient: " , x / y -- Truncated towards zero |
|||
put "Remainder: " , x mod y -- Result has sign of left operand |
|||
put "Exponent: " , power(x, y)</lang> |
|||
=={{header|Little}}== |
=={{header|Little}}== |