EasyManua.ls Logo

Commodore 128D - While; Exit

Commodore 128D
427 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
u
The
DO/LOOP
statement
is
often
used
to
repeat
an
entire
routine
indefinitely
in
the
body
of
a
r~(
program, as
in
the
following:
(—\
Another
use
of
DO/LOOP
is
as a
counter,
where
the
UNTIL
statement
is
used
to
specify
a
certain
number
of
repetitions.
mmsmm
u
u
Li
Notice
that
if
you
leave
the
counter
statement
out
(the
UNTIL
X
=
25
part
in
line
70),
the
num
ber
is
doubled
indefinitely
until
an
OVERFLOW
error
occurs.
WHILE
EXIT
The
WHILE
statement
works
in
a
similar
way
to
l[
UNTIL,
but
the
loop
is
repeated
only
while
the
condition
is
in
effect,
such
as
in
this
reworking
of
this
brief
program:
\
j"
An
EXIT
statement
can
be
placed
within
the
body
of
a
DO/LOOP.
When
the
EXIT
statement
is
encountered,
the
program
jumps
to
the
next
{
(
statement
following
the
LOOP
statement.
76
USING
C128
MODE—Some
BASIC
Commands
and
Keyboard
Operations
Unique
to
C128Mode

Table of Contents

Other manuals for Commodore 128D

Related product manuals