EasyManuals Logo

HP HP-11C User Manual

HP HP-11C
264 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #116 background imageLoading...
Page #116 background image
114
Section
7:
Program
Decisions
and
Control
Conditional
Branch
Control
of
Program
Loop
[LBLIS
r—-»
I
|
Instruction
|
-
I
Instruction
|
I
|
.
G0l
5
'
|
If
test
true,
Instruction
<=~
|ftestfalse,
looping
continues.
looping
terminates.
Instruction
Example
of
Conditonal
Loop
Control.
The
following
program
calculates
and
displays
the
square
roots
of
consecutive
whole
numbers
from
1
to
10.
After
the
square
root
of
an
integer
is
calculated
and
displayed,
an
conditional
test
determines
whether
or
not
that
integer
was
less
than
10.
If
the
integer
was
less
than
10,
a
0
conditional
branch
is
executed
and
the loop
is
repeated
using
the
next
highest
integer.
If
the
test
finds
that
the
integer
was
not
less
than
10,
program
execution
bypasses
the
0 conditional
branch
and
the loop
is
terminated.
(The
loop portion
of
the
following
program
is
included
in
lines
004
through
015.)
Keystrokes
Display
000-
Sets
HP-11C
to
Program
mode.
CLEAR
000-
001-42,21,13
0
002-
0
}
Clears
R,
of
any
1
003-
44
1)
unwanted
data
from
previous
calculations.
[f)(LBL]O
004-42,21,
0
Begins
loop.
1
005-
1
1
006-44,40,
1
Integer
counter/
increment.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP HP-11C and is the answer not in the manual?

HP HP-11C Specifications

General IconGeneral
BrandHP
ModelHP-11C
CategoryCalculator
LanguageEnglish

Related product manuals