Vtech PreComputer Power Pad Plus User Manual - Page 74

If Answer > No Then Goto 100

Page 74 highlights

MAD LIB'S 10 REM * MAD LIB'S * 20 PRINT "Mad Lib's" 30 INPUT "Adjective"; A1$ 40 INPUT "Verb"; V$ 50 INPUT "Adverb"; A2$ 60 PRINT "Once upon a time" 70 PRINT "there was a "; A1$ 80 PRINT "dog that decided to" 90 PRINT V$; " "; A2$;" down the" 100 PRINT "hill to fetch its" 110 PRINT "bone." 120 END SECRET NUMBER 0 REM **Secret Number** 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." 70

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

70
MAD LIB’S
10
REM * MAD LIB’S *
20
PRINT “Mad Lib’s”
30
INPUT “Adjective”; A1$
40
INPUT “Verb”; V$
50
INPUT “Adverb”; A2$
60
PRINT “Once upon a time”
70
PRINT “there was a ”; A1$
80
PRINT “dog that decided to”
90
PRINT V$; “ ”; A2$;“ down the”
100
PRINT “hill to fetch its”
110
PRINT “bone.”
120
END
SECRET NUMBER
0
REM **Secret Number**
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.”