Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Arithmetic-Integer/Efene/arithmetic-integer.efene
Normal file
15
Task/Arithmetic-Integer/Efene/arithmetic-integer.efene
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@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])
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue