EasyManuals Logo

HP 39G Master Guide

HP 39G
331 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 #237 background imageLoading...
Page #237 background image
237
T
T
h
h
e
e
G
G
r
r
a
a
p
p
h
h
i
i
c
c
s
s
c
c
o
o
m
m
m
m
a
a
n
n
d
d
s
s
See the chapter “Programming the hp 39g+” on page 226 for examples
illustrating some of the graphics commands used regularly.
T
T
h
h
e
e
L
L
o
o
o
o
p
p
c
c
o
o
m
m
m
m
a
a
n
n
d
d
s
s
FOR <variable> = <start value> TO
<end value> [STEP <increment>] <statements> END
This is a standard FOR…NEXT command.
The STEP value is optional and is assumed to
be 1 if not stated. Whatever you do, don’t use
NEXT to terminate the loop! It doesn’t register
as an error but all sort of strange things
happen!
DO <statements> UNTIL <test clause> END
This loop executes the statements within it
until the test clause evaluates as true. It must
execute at least once. The example right
checks for a positive integer from the INPUT
statement. To be even more user friendly you
could let the user know what they had done wrong by adding another few
lines of code within the DO loop of..
IF INT(N) N OR N 0 THEN
MSGBOX “Enter a positive integer only”:
END:
WHILE <test clause> REPEAT <statements> END
This is similar to the DO…UNTIL loop except that the test clause is evaluated
before starting so that the loop may not be executed at all.

Table of Contents

Other manuals for HP 39G

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 39G and is the answer not in the manual?

HP 39G Specifications

General IconGeneral
BrandHP
Model39G
CategoryCalculator
LanguageEnglish

Related product manuals