128 Section 9: Branching and Looping

Keystrokes

Ê

Ê

Ê

Ê

Ê

Ê

Ê

Ê

Ê

Ê

Display

 

 

 

–593.75

 

 

Portion of first month’s payment

 

 

 

applied to interest.

004,

43

31

Line 004: gu.

–593.75

 

 

 

005,

 

34

Line 005: ~.

–188.72

 

 

Portion of first month’s payment

 

 

 

applied to principal.

006,

43

31

Line 006: gu.

–188.72

 

 

 

007,43,33,002

Line 007: gi002. This is the

 

 

 

end of the first pass through the

 

 

 

loop.

–188.72

 

 

 

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!.

–593.00

 

 

Portion of second month’s payment

 

 

 

applied to interest.

004,

43

31

Line 004: gu.

–593.00

 

 

 

005,

 

34

Line 005: ~.

–189.47

 

 

Portion of second month’s payment

 

 

 

applied to principal.

006,

43

31

Line 006: gu.

–189.47

 

 

 

007,43,33,002

Line 007: gi002.

 

 

 

This is the end of the second pass

 

 

 

through the loop.

–189.47

 

 

 

File name: hp 12c pt_user's guide_English_HDPMF123E27

Page: 128 of 275

Printed Date: 2005/8/1

Dimension: 14.8 cm x 21 cm