home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / hp48 / 6489 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  667 b 

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