Chawter
10
I
BASIC
Kevwords
CONT
Statement
CONT
Resumes program execution.
You may only use CONT if the program has been stopped by
[CTRL]
[BREAK]
or the execution of a STOP or an END statement.
CONT
is
primarily
a
debugging tool. During a break or stop in
execution, you may examine variable values (using PRINT) or
change these values. Then type CONT
(ENTER]
to continue execu-
tion with the new variable values.
You cannot use CONT after editing your program lines or other-
wise changing your program. CONT
is
also invalid after execu-
tion
has
ended normally.
See the
STOP
statement to terminate execution and the GOT0
statement to begin execution at a specific line number.
Example
10
INPUT "ENTER
3
NUMBERS
a,b,c";A,
B,
C
20
K=A"2
30
L=BA3/.26
40
STOP
50
M=C+40*K+100:
PRINT
M
Run this program. BASIC prompts for
3
numbers. Type:
1, 2, 3
(ENTERJ
The computer displays "Break in
40."
You can now enter
a BASIC statement as
a
command. For example:
PRINT
L
[ENTER]
displays
30.76923.
You can also change the value of A,
B,
or
C.
For example, to change the value of C, type:
c=4
Now type:
CONT
[ENTER]
and BASIC displays
144.
127