Arithmetic/Integer: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: made the REXX program compliant. -- ~~~~)
No edit summary
Line 232: Line 232:


Remainder sign matches: first operand
Remainder sign matches: first operand

=={{header|BASIC256}}==
<lang BASIC256>
input "enter a number ?", a
input "enter another number ?", b

print "addition " + a + " + " + b + " = " + (a + b)
print "subtraction " + a + " - " + b + " = " + (a - b)
print "multiplication " + a + " * " + b + " = " + (a * b)
print "integer division " + a + " \ " + b + " = " + (a \ b)
print "remainder or modulo " + a + " % " + b + " = " + (a % b)
print "power " + a + " ^ " + b + " = " + (a ^ b)
</lang>


=={{header|Batch File}}==
=={{header|Batch File}}==