Vtech PreComputer Power Pad Plus User Manual - Page 69

Appendix

Page 69 highlights

REM Line # REM text REM is used to add comments in your program which are ignored when the program is RUN. Example: 10 REM**GUESSING GAME** 20 REM TEST OF SORTING RUN RUN tells the computer to begin to perform your program beginning with the lowest statement number. STOP ... CONT Line # STOP CONT The STOP command halts the RUNNING of a program at that line. This is helpful for debugging. To CONTINUE at the next line after the STOP command, type CONT directly without a line number. Example: 800 STOP APPENDIX EXAMPLE PROGRAMS MOONWEIGHT 10 PRINT "Weight on the Moon" 20 INPUT "Your Weight in Lbs." ; WEIGHT 30 MOONWEIGHT = WEIGHT /6 40 PRINT "Your moon weight would" 50 PRINT "be" ; MOONWEIGHT; "pounds." 60 PRINT "Wow" RUN 65

  • 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

65
REM
Line #
REM
text
REM
is used to add comments in your program which are ignored when the program is
RUN
.
Example:
10
REM**GUESSING GAME**
20
REM TEST OF SORTING
RUN
RUN
tells the computer to begin to perform your program beginning with the lowest statement
number.
STOP ...
CONT
Line #
STOP
CONT
The
STOP
command halts the
RUNNING
of a program at that line.
This is helpful for
debugging.
To
CONTINUE
at the next line after the
STOP
command, type
CONT
directly
without a line number.
Example:
800
STOP
APPENDIX
EXAMPLE PROGRAMS
MOONWEIGHT
10
PRINT “Weight on the Moon”
20
INPUT “Your Weight in Lbs.” ; WEIGHT
30
MOONWEIGHT = WEIGHT /6
40
PRINT “Your moon weight would”
50
PRINT “be” ; MOONWEIGHT; “pounds.”
60
PRINT “Wow”
RUN