Arithmetic/Integer: Difference between revisions

→‎{{header|APL}}: Added APL implementation.
No edit summary
(→‎{{header|APL}}: Added APL implementation.)
Line 316:
WriteF('A mod B =\d\n', Mod(a,b))
ENDPROC</lang>
=={{header|APL}}==
<lang apl>∇res ← test; l; r
l ← ⎕
r ← ⎕
res ← 6 2 ⍴ 'sum' (l+r) 'diff' (l-r) 'prod' (l×r) 'quot' (⌊l÷r) 'rem' (r|l) 'pow' (l*r)</lang>
 
Quotient will round down in this version.
 
=={{header|AutoHotkey}}==
Anonymous user