INPUT LOOPS
To repeat your conversation with the computer, add a loop command
to the program again. A
GOTO statement at the end will make the
computer repeat the program from the beginning. For program
readability, use a
REM
statement to show where the main
conversation portion of the program begins. A
REM
(remark) statement
functions
like a label for the programmer. The computer does not
carry out
REM
commands but only prints them when you
li
st your
program.
199
REM
***
CONVERSATION
LOOP
***
249
GOTO
199
The computer must return to line 100, rather than line 10, because it
cannot go back over the
DIM statements for string variables. If it loops
over the same DIM statements, you wi
ll
receive
an
Error message.
46