public class Main128 { public static int f(int a, int b) { int i; for(i=a;;i+=a){ // 填空 if(i%b==0) return i; } } public static void main(String[] args){ System.out.println(f(6,8)); } }
求最小公倍数的最简模板
猜你喜欢
转载自www.cnblogs.com/ls-pankong/p/10468597.html
今日推荐
周排行