home *** CD-ROM | disk | FTP | other *** search
/ ticalc.org / ticalc_org_rev_b.iso / archives / 80 / basic / math / scd.80 < prev    next >
Encoding:
Text File  |  2001-07-01  |  821 b   |  25 lines

  1. Smallest common denominator
  2. --------------------------------------------------------------------------------------
  3. Version: 1.0, 980205
  4. Creator: Daniel Bergman.
  5. Description: The program calculates the smallest common denominator for two fractions.
  6.              You input the two denominators, and the common denominator is shown, tohether
  7.              with the two digits the fractions must be multipliced with.
  8. Comments: No "=" not needed in the IF-line.
  9. Known bugs: None.
  10. Size: 44 bytes.
  11.  
  12. For more games and programs, please visit http://ti80.burtrask.net.
  13.  
  14. PROGRAM:SCD
  15. INPUT A
  16. INPUT B
  17. FOR(X,1,B
  18. IF FPART(AX/B
  19. END
  20. DISP AX,X,AX/B
  21.  
  22. --------------------------------------------------------------------------------------
  23. Copyright (C) 1998 by Daniel Bergman & Mattias MorΘn
  24. http://ti80.burtrask.net
  25.