home *** CD-ROM | disk | FTP | other *** search
- From: akcs.joehorn@hpcvbbs.cv.hp.com (Joseph K. Horn)
- Date: Thu, 24 Dec 1992 07:40:02 GMT
- Subject: Re: need GCD and LCM
- Message-ID: <2b396708.2460.2comp.sys.hp48.1@hpcvbbs.cv.hp.com>
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hp-cv!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.joehorn
- Newsgroups: comp.sys.hp48
- References: <1992Dec17.201031.27787@ems.psu.edu> <10292353.58483.17817@kcbbs.ge
- Lines: 11
-
- jmr@aaron.ece.psu.edu [Joe Reinhardt] writes:
-
- > Hi, I know I saw a GCD and LCM program posted somewhere for the
- > HP48, but I can't find it on any of the archive sites. Can someone
- > help me find it?
-
- GCD
- << WHILE OVER MOD DUP REPEAT SWAP END DROP >>
-
- LCM
- << DUP2 GCD / * >>
-