EasyManua.ls Logo

HP 12c Platinum - The Power Function

HP 12c Platinum
213 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
Loading...
104 Section 9: Branching and Looping
Conditional Branching
Often there are situations when it is desirable for a program to be able to branch
to different lines in program memory, depending on certain conditions. For
example, a program used by an accountant to calculate taxes might need to
branch to different program lines depending on the tax rate for the particular
income level.
Ê
002, 45 0
Line 002: :0. Program
execution has branched to the
beginning of the loop for the
second pass through it.
1.00
Ê
003, 42 11
Line 003: f!.
–531.12
Portion of second month’s
payment applied to interest.
Ê
004, 43 31
Line 004: gu.
–531.12
Ê
005, 34
Line 005: ~.
–12.23
Portion of second month’s
payment applied to principal.
Ê
006, 43 31
Line 006: gu.
–12.23
Ê
007,43,33,002
Line 007: gi002.
This is the end of the second pass
through the loop.
–12.23
t
–530.99
Portion of third month’s payment
applied to interest.
–12.36
Portion of third month’s payment
applied to principal.
t(or any key)
–12.36
Halts program execution.
a More precisely, the number in the X-register.
Keystrokes Display

Table of Contents

Other manuals for HP 12c Platinum

Related product manuals