]LIST
10 LET LCM=0
20 INPUT M,N
30 LET LCM=LCM+M
40 IF INT(LCM/N)*N<>LCM THEN 30
50 PRINT "The lowest common multiple is "; LCM
60 END
]RUN
27,36
The lowest common multiple is 108
]RUN
19,6
The lowest common multiple is 114
]
注:此程序在APPLE-II、Laser-310、PZ-80等微电脑上运行通过。
lowest common multiple 查自金山词霸2000
10 LET LCM=0
20 INPUT M,N
30 LET LCM=LCM+M
40 IF INT(LCM/N)*N<>LCM THEN 30
50 PRINT "The lowest common multiple is "; LCM
60 END
]RUN
27,36
The lowest common multiple is 108
]RUN
19,6
The lowest common multiple is 114
]
注:此程序在APPLE-II、Laser-310、PZ-80等微电脑上运行通过。
lowest common multiple 查自金山词霸2000