home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
l
/
lllii.zip
/
LCM.BAS
next >
Wrap
BASIC Source File
|
1993-03-17
|
736b
|
29 lines
5 CLS
10 PRINT "THIS PROGRAM HAS BEEN WRITTEN BY: STEVEN SCHUSTER"
20 PRINT
25 PRINT "THIS PROGRAMS RIGHTS BELONG TO:MATHEMATICS STRUCTURE AND METHOD"
30 PRINT "IF YOU LIKE THIS PROGRAM THEN SEND A CHECK OR MONEY ORDER TO:"
35 PRINT
40 PRINT "STEVEN SCHUSTER"
45 PRINT
50 PRINT "P.O. BOX 16290"
55 PRINT
60 PRINT "MILWAUKEE, WI 53216"
70
75 PRINT
80 PRINT "WELECOME TO THE LEAST COMMON MULTIPLE FINDER!"
90 PRINT
100 PRINT "TO FIND THE L.C.M.;"
120 PRINT "TYPE A,B";
130 INPUT A, B
140 FOR X = 1 TO B
150 LET A1 = A * X
160 LET Q = A1 / B
170 IF Q = INT(Q) THEN GOTO 190
180 NEXT X
190 PRINT "LCM("; A; ","; B; " = "; A1
200 PRINT
210 PRINT "TO USE AGAIN PRESS THE F5 KEY TWICE OR ENTER TO ESCAPE!"
220 END