Basic Program To Compare Two Numbers

REM THIS PROGRAMM COMPARES TWO NUMBERS. “=” NOT TOLD IN CLASS?
CLS
10 : INPUT “ENTER THE FIRST NO Q”; Q
20 : INPUT “ENTER THE SECOND NO W”; W
30 : IF Q > W THEN 40 ELSE 60
40 : PRINT “Q >W”
50 : GOTO 70
60 : IF Q = W THEN 65 ELSE 66
65 : PRINT “W=Q”
67 : GOTO 70
66 : PRINT “Q<W”
70 : END

Please follow and like us:

Leave a comment