Basic Program To Compare Two Number and tell Which is Bigger or Smaller

REM COMPARE TWO NUMBERS AND TELL WHICH IS BIGGER OR SMALLER
CLS
10 : INPUT “ENTER THE NUMBER OF PAIRS TO BE COMPARED “; Q
15 : FOR I = 1 TO Q
16 : INPUT “ENTER THE FIRST NO “; E
20 : INPUT “ENTER THE SECOND NO”; W
30 : IF E > W THEN 40 ELSE 60
40 : PRINT “FIRST NO.E >SECOND NO. W”
50 : GOTO 70
60 : PRINT “FIRST NUMBER E=>SECOND NUMBER Q”
65 : NEXT I
70 : END

Leave a comment