Arithmetic/Integer: Difference between revisions
Content deleted Content added
m {{out}} |
|||
Line 1,629: | Line 1,629: | ||
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|LiveCode}}== |
|||
<lang LiveCode>ask "enter 2 numbers (comma separated)" |
|||
if it is not empty then |
|||
put item 1 of it into n1 |
|||
put item 2 of it into n2 |
|||
put sum(n1,n2) into ai["sum"] |
|||
put n1 * n2 into ai["product"] |
|||
put n1 div n2 into ai["quotient"] |
|||
put n1 mod n2 into ai["remainder"] |
|||
put n1^n2 into ai["power"] |
|||
combine ai using comma and colon |
|||
put ai |
|||
end if</lang> |
|||
=={{header|Logo}}== |
=={{header|Logo}}== |