74
90 PRINT A; "and "; B; "is "; A - B; "."
100 END
200 PRINT "The sum of"
210 PRINT A; "and "; B; "is "; A + B; "."
220 END
7. SECRET
0
REM Secret
10 NO = RND(100)
20 PRINT "Hi! I’ve got a secret number"
30 PRINT "between 1 and 100."
40 INPUT "Guess it by typing a number"; ANSWER
50 IF ANSWER = NO THEN GOTO 200
60 IF ANSWER > NO THEN GOTO 100
70 PRINT "No! The secret number is bigger."
80 GOTO 40
100 PRINT "No! The secret number is smaller."
110 GOTO 40
200 PRINT "Yes! The number is"; NO; "."
210 END
Summary of Contents for PreComputer Prestige
Page 1: ...COURSE BOOK...