Arithmetic/Integer: Difference between revisions

m
No edit summary
Line 790:
=={{header|Arturo}}==
 
<lang arturorebol>printa: to :integer input "give me the first number : ", a: toNumber|strip|input ~
printb: to :integer input "give me the second number : ", b: toNumber|strip|input ~
 
print [a + " + " + b + " = " + (a+b)]
print [a + " - " + b + " = " + (a-b)]
print [a + " * " + b + " = " + (a*b)]
print [a + " / " + b + " = " + (a/b)]
print [a + " % " + b + " = " + (a%b)]
print [a + " ^ " + b + " = " + (a^b)]</lang>
 
{{out}}
 
<pre>give me the first number : 33
give me the second number : 6
33
give me the second number :
6
33 + 6 = 39
33 - 6 = 27
1,532

edits