RosettaCodeData/Task/Arithmetic-Integer/Julia/arithmetic-integer.jl

6 lines
152 B
Julia
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function arithmetic (a = parse(Int, readline()), b = parse(Int, readline()))
for op in [+,-,*,div,rem]
println("a $op b = $(op(a,b))")
end
end