Posts found under: Computer Programs Archives | Kids Adda

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

Read more...
  • Latest Posts

    • Science

      MAGNETS Magnets are objects that attract ...

    • Strong Facts

      DID YOU KNOW THAT IN ONE DAY YOUR BODY DOES ...

    • Let’s Laugh

      One friend (to another) :- Since last month ...

  • Advertisement