134 Section 9: Branching and Looping

Keystrokes (RPN mode)

Ê

Ê

Ê

Ê

Ê

20000

Ê

Ê

Ê

Display

20,000.00

 

Test value has been recalled to

 

 

 

X-register, moving income to

 

 

 

Y-register.

002,

 

34

Line 002: ~

15,000.00

 

Income has been placed in

 

 

 

X-register and test value has been

 

 

 

placed in Y-register.

003,

43

34

Line 003: go

15,000.00

 

 

004,43,33,007

Condition tested by owas true,

 

 

 

so program execution continued

 

 

 

with line 004: gi007.

15,000.00

 

 

007,

45

1

Line 007: :1.

20.0020% tax rate has been recalled to X-register, moving income to Y-register.

008,

 

25

Line 008: b.

3,000.00

 

20% of 15,000 = 3,000.

20,000.

 

 

Keys income equal to test value

 

 

 

into display and X-register.

001,

45

0

Line 001: :0.

20,000.00

 

Test value has been recalled to

 

 

 

X-register, moving income to

 

 

 

Y-register.

002,

 

34

Line 002: ~.

20,000.00

 

Income has been placed in

 

 

 

X-register and test value has been

 

 

 

placed in Y-register.

003,

43

34

Line 003 go.

20,000.00

 

 

File name: hp 12c pt_user's guide_English_HDPMF123E27

Page: 134 of 275

Printed Date: 2005/8/1

Dimension: 14.8 cm x 21 cm

Page 134
Image 134
HP 12C Financial 12C manual 15,000.00 004,43,33,007, 15,000.00 007, 20,000