代码示例:寻找最小公倍数
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script> var max = 15 var min = 10 for(var a =max;a<=150;a += max) { if (a%max===0&&a%min===0){ document.write(a) break } } </script> </body> </html>
标签:10,示例,公倍数,max,循环,var From: https://www.cnblogs.com/xu529/p/17001272.html