Arithmetic/Integer: Difference between revisions

Added Robotic implementation
mNo edit summary
(Added Robotic implementation)
Line 3,782:
see "a%b" + ( a % b ) + nl
see "a**b" + pow(a,b ) + nl
</lang>
 
=={{header|Robotic}}==
<lang robotic>
input string "Enter number 1:"
set "a" to "input"
input string "Enter number 2:"
set "b" to "input"
 
[ "Sum: ('a' + 'b')"
[ "Difference: ('a' - 'b')"
[ "Product: ('a' * 'b')"
[ "Integer Quotient: ('a' / 'b')"
[ "Remainder: ('a' % 'b')"
[ "Exponentiation: ('a'^'b')"
</lang>
 
Anonymous user