16 lines
416 B
Plaintext
16 lines
416 B
Plaintext
@public
|
|
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])
|
|
}
|