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

6 lines
152 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
function arithmetic (a = parse(Int, readline()), b = parse(Int, readline()))
2015-02-20 00:35:01 -05:00
for op in [+,-,*,div,rem]
println("a $op b = $(op(a,b))")
end
end