Arithmetic/Integer: Difference between revisions

add julia example
m (Moved category "Arithmetic" to top of page)
(add julia example)
Line 1,304:
quotient: a / b = -2
remainder: a % b = -21</pre>
 
=={{header|Julia}}==
<lang Julia>function arithmetic (a = int(readline()),b = int(readline()))
for op in [+,-,*,div,rem]
println("a $op b = $(op(a,b))")
end
end</lang>
{{Out}}
<pre>julia> arithmetic()
4
5
a + b = 9
a - b = -1
a * b = 20
a div b = 0
a rem b = 4</pre>
 
=={{header|LabVIEW}}==