The Museum of HP Calculators

Greatest Common Divisor, Least Common Multiple for the HP-95C

This program is Copyright © 1977 by Hewlett-Packard Company and is used here by permission. It was originally printed in the HP-95C Applications book. This program was entered and uploaded by André Wilhelmus.

This program is supplied without representation or warranty of any kind. André Wilhelmus, Hewlett-Packard and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Program Listing

HP-95C
CODEKEYS
A-000    lbl Af LBL A
A-001    35  3STO 3
A-002       11x↔y
A-003    35  2STO 2
A-004    61 53f RTN
A-005 61 63  1f LBL 1
A-006    45  3RCL 3
A-007    35  1STO 1
A-008    45  2RCL 2
A-009    35  0STO 0
A-010 61 63  9f LBL 9
A-011    45  0RCL 0
A-012    45  0RCL 0
A-013    45  1RCL 1
A-014    35  0STO 0
A-015       24÷
A-016    61  1f INT
A-017    45  1RCL 1
A-018       39×
A-019       49
A-020    35  1STO 1
A-021    62 42g x!=0
A-022    63  9GTO 9
A-023    45  0RCL 0
A-024    61 53f RTN
A-025 61 63  2f LBL 2
A-026    45  2RCL 2
A-027    45  3RCL 3
A-028       39×
A-029    35  4STO 4
A-030    53  1GSB 1
A-031    45  4RCL 4
A-032       11x↔y
A-033       24÷

Go back to the HP-95C software library
Go back to the general software library
Go back to the main exhibit hall