Jump to content

Integer comparison: Difference between revisions

Factor
(Factor)
Line 236:
}</lang>
 
=={{header|Factor}}==
<lang factor>: example ( -- )
readln readln [ string>number ] bi@
[ > [ "A > B" print ] when ]
[ < [ "A < B" print ] when ]
[ = [ "A = B" print ] when ] 2tri ;
</lang>
=={{header|FALSE}}==
Only equals and greater than are available.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.