Arithmetic/Integer: Difference between revisions
m
→{{header|J}}: Add lang tags
m (→{{header|J}}: Add lang tags) |
|||
Line 410:
=={{header|J}}==
<lang j> calc =: + , - , * , <.@% , |~ , ^
</lang>
Note that the verb <tt>calc</tt> produces all the processing specified for this problem, and that its output is of numeric type.
<lang j> 17 calc 3
</lang>
Since other examples here provide textual output, <tt>bia</tt> produces like results.
<lang j> 17 bia 3
</lang>
=={{header|Java}}==
|