Arithmetic/Integer: Difference between revisions

m (→‎{{header|REXX}}: changed the wording for the sign of the remainder, changed the indentation. -- ~~~~)
Line 604:
=={{header|Elena}}==
<lang elena>#define std'basic'*.
#define math'* = std'math'*.
 
// ---#symbol Program ---=
 
#symbol Program =>
[
#var a := 'program'input >> Integer.
Line 617 ⟶ 615:
'program'output << a << " * " << b << " = " << a * b << "%n".
'program'output << a << " / " << b << " = " << a / b << "%n". // truncates towards 0
'program'output << a << " %% " << b << " = " << (a~emathmath'eops math'modulus:b) << "%n". // matches sign of first operand
].</lang>
</lang>
 
=={{header|Euphoria}}==
Anonymous user