Anonymous user
Arithmetic/Integer: Difference between revisions
→{{header|Elena}}
Thundergnat (talk | contribs) m (→{{header|REBOL}}: Remove vanity tags) |
|||
Line 1,311:
import extensions.
public program
[
var a := console readLineTo(Integer new).
Line 1,321:
console printLine(a," / ",b," = ",a / b). // truncates towards 0
console printLine(a," % ",b," = ",a mod:b). // matches sign of first operand
]
=={{header|Elixir}}==
|