EasyManuals Logo

HP 12c Platinum User Manual

HP 12c Platinum
288 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 #132 background imageLoading...
Page #132 background image
132 Section 9: Branching and Looping
File name: HP 12c Pt Converted_user's guide_English_HDP0F123E02_080207 Page: 271 of 281
Printed Date: { 2007/8/2Dimension: 14.8 cm x 21 cm
These rules can be summarized as “DO if TRUE”.
The program line immediately following that containing the conditional test
instruction can contain any instruction; however, the most commonly used
instruction there is
i
. If a
i
instruction follows a conditional test instruction,
program execution branches elsewhere in program memory if the condition is true
and continues with the next line in program memory if the condition is false.
Example:
The following program calculates income tax at a rate of 20% on
incomes of $20,000 or less and 25% on incomes of more than $20,000. To
conserve program lines, the program assumes that the test value — 20,000 — has
been stored in register R
0
and the tax rates — 20 and 25 — have been stored in
registers R
1
and R
2
, respectively.
Note: If a program requires that certain numbers be in the X- and
Y-registers when instructions such as go are executed, it is extremely
helpful when writing the program to show the quantities in each register after
each instruction is executed, as in the following diagram (which shows an
RPN mode program, although it works in a similar way in ALG mode.).

Table of Contents

Other manuals for HP 12c Platinum

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 12c Platinum and is the answer not in the manual?

HP 12c Platinum Specifications

General IconGeneral
Digits10 digits
Battery typeCR2032
TypeFinancial
Form factorPocket
Weight and Dimensions IconWeight and Dimensions
Weight110 g
Dimensions (WxDxH)79 x 129 x 15 mm

Related product manuals