RosettaCodeData/Task/Integer-comparison/Liberty-BASIC/integer-comparison-2.liberty

8 lines
186 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
input "Enter an integer for a. ";a
input "Enter an integer for b. ";b
for i = 1 to 3
op$=word$("< = >", i)
if eval("a"+op$+"b") then print "a"+op$+"b " ; a;" ";op$;" ";b
next