HP 25 Owner's Handbook Manual page 92

Programmable scientific calculator
Table of Contents

Advertisement

88
P'ogrammlng
Unconditional Branching
05
06
07
12
13 06
(GTO 06)
Execute the
step specified
next.
When recording an
unconditional branch
always follow
the
Em
key with
two digit
keys to designate
the
step
number.
For
in-
stance
,
to
branch
to
step 6 the
program
instruction
must
be
Em@]
~.
If the first
digit'
key following
Em
is
greater
than
four, the
Em
key is
ignored
and
the
number
is
stored in
that
step of
pro-
gram memory. Similarly,
if
one
of the two keys
following
Em
is not
a digit
key
,
the
Em
key is ignored
and
the invalid key
is
stored in program memory
,
Example Program.
The following
program is
an
interesting
one to show your friends
.
It calculates
the
squares of consecu-
tive whole
numbers beginning with
zero. The calculator con-
tinues to
compute the square of
the next
consecutive
whole
number until
you
press~
to stop
program
execution (or
until
the calculation overflows),
The simple formula used
is:
x
x
n
2
where
n
is continually incremented by
one,

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents