Arithmetic/Integer: Difference between revisions

No edit summary
Line 632:
=={{header|Arturo}}==
 
<lang arturo>print "give me the first number : " true, a: $(toNumber|strip|input) ~
print "give me the second number : " true, 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
33
give me the second number : 6
6
33 + 6 = 39
33 - 6 = 27
Line 651 ⟶ 653:
33 / 6 = 5
33 % 6 = 3
33 ^ 6 = 129146796912914679699</pre>
 
=={{header|AutoHotkey}}==
1,532

edits