112 Section 9: Branching and Looping

Keystrokes

Display

Ê

02-

 

25,000.00

34Line 02: ~.

Income has been placed in X-register and test value has been placed in Y-register.

Ê

03-

43

34

Line 03: go.

 

25,000.00

 

 

Ê

05-

45

2

Condition tested by owas false,

 

 

 

 

so program execution skipped the

next line and continued at line 05: :2.

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

Ê06- 43, 33 08 Line 06: gi08.

Ê

08-

25 Line 08: b.

 

6,250.00

25% of 25,000 = 6,250.

File name: hp 12c_user's guide_English_HDPMBF12E44

Page: 112 of 209

Printered Date: 2005/7/29

Dimension: 14.8 cm x 21 cm