Arithmetic/Integer: Difference between revisions

no edit summary
No edit summary
Line 276:
Quotient: ${a // b}
Remainder: ${a % b}$\n`
}</lang>
 
=={{header|Efene}}==
 
<lang efene>run = fn () {
 
First = io.get_line("First number: ")
Second = io.get_line("Second number: ")
 
A = list_to_integer(lists.delete($\n First))
B = list_to_integer(lists.delete($\n Second))
 
io.format("Sum: ~p~n", [A + B])
io.format("Difference: ~p~n", [A - B])
io.format("Product: ~p~n", [A * B])
io.format("Quotient: ~p~n", [A / B])
io.format("Remainder: ~p~n", [A % B])
}</lang>
 
Anonymous user