33
CONT
This command causes the program to resume executing after encountering the BASIC
command called STOP. The program will be carried on with the next statement after STOP.
You can type CONT to resume the program after you hit the Shift and Break keys.
BASIC COMPUTER TUTORIAL
1. A REAL SMALL PROGRAM
You and Teresa went to the local video store to rent some movies. Teresa brought back
12 but 4 were too gory for you and so you took them back. On that trip you got carried
away and came home with 7 new ones. How many are you going to watch this afternoon?
You could work this out yourself but here is a small BASIC program that can do the arithmetic
for you.
Type in:
10 PRINT 12-4+7 and press Enter
20 END and press Enter
Not much to it. Now type RUN and press Enter. What happens? The answer, 15, appears
on the display.
In BASIC, you write a series of line-numbered statements that tell the PRECOMPUTER
PRESTIGE
TM
unit what to do. The first statement, numbered 10, tells the computer to work
out the sum of three numbers and then PRINT the answer in the display. The next statement,
number 20, tells the computer that this is the end of the program and that it can stop
RUNNING. However, the last statement is not necessary in this program because you
only want to print out the sum of 3 numbers, therefore, it could be removed.
Remove that last line by typing 20 and press Enter, then type RUN and press Enter. What
happens? That’s right, you get the same result.
Suppose you typed:
10 PRONG 12-4+7 and press Enter
Now type RUN and press Enter. What happens? You get the strange message, "? SYNTAX
ERROR IN 10" in the display. That means you made a mistake in BASIC grammar and
this is the PRECOMPUTER PRESTIGE
TM
unit’s way of telling you this. You need to EDIT
the line or re-type it, changing "PRONG" to "PRINT" and then running the program again
to get the correct answer.