Integer comparison: Difference between revisions

no edit summary
(Added 11l)
No edit summary
Line 530:
 
=={{header|Arturo}}==
<lang arturorebol>printa: to :integer input "enter a value for a: "
b: to :integer input "enter a value for b: "
a: toNumber|strip|input ~
 
if a<b [ print "enter[ a value"is forless b:than" b ] ]
if a>b {[ print [ a + " is greater than " +b b] }]
b: toNumber|strip|input ~
if a=b {[ print [ a + " is equal to " +b b] }}</lang>]
 
</lang>
if a<b { print a + " is less than " + b }
if a>b { print a + " is greater than " + b }
if a=b { print a + " is equal to " + b }}</lang>
{{out}}
<pre>enter a value for a:
10
enter a value for b:
20
10 is less than 20</pre>
 
=={{header|Astro}}==
1,532

edits