RosettaCodeData/Task/Integer-comparison/Run-BASIC/integer-comparison.run

7 lines
258 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
input "1st number:"; n1
input "2nd number:"; n2
if n1 < n2 then print "1st number ";n1;" is less than 2nd number";n2
if n1 > n2 then print "1st number ";n1;" is greater than 2nd number";n2
if n1 = n2 then print "1st number ";n1;" is equal to 2nd number";n2