Sharp PC-1403 Operation Manual page 103

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

97
Now RUN
the modified program.
The GOTO statement
causes the
program to
loop
(keep repeating the same
opera-
tion).
Since you
put
no limit
on the
loop,
it
will keep going
forever (an
"infinite"
loop).
To stop this
program, hit the
BREAK
( ~)
key.
When
you have stopped a program using the ~
key,
you can restart it using the
CONT
command.
CONT
stands for
CONTinue.
With
the CONT command,
the
program
will restart
on
the line
that
was
being
executed when the ~
key was
pressed.
40:
GOTO
10
This is
the end of your
program.
Of
course,
you may
begin it
again
by
entering RUN.
However,
this
program would be a bit
more
entertaining if it presented
more than one
opportunity
for
input. We
will
now
modify the
program, so it will keep
running without
entering
RUN after each
answer.
Return
to the PRO mode and use the
up or
down arrow
(or
LIST) to reach
line 40.
You
may type
40
to delete the entire line or
use
the ~
key to
position
the
cursor
over
the E in
END.
Change line 40 so
that it reads:
>
WORD
IS
4.
LTRS
WORD?_
RUN
[ENTER]
HELP
I
ENTER
I
Display
Input
Use the
[I]
and
[I]
keys
to move through your program until
you
have reviewed the
entire
program.
To review
a line which contains
more
than
24
characters,
move the
cursor to the
extreme right of
the
display
and
the additional
characters will appear on
the
screen.
After checking
your
program,
run it:
j
10:
INPUT
"WORD?"
LIST
I
ENTER
I
Display
Input
Try l
i
sting
this
program:
Programming
the Computer

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents