public class HomeWork4最小公倍数 {
public static void main(String[] args) {//求两个数的最小公倍数
System.out.println(get(15,13));
}
public static int get(int a, int b) {
int re = 0;
int c = a > b ? a : b;//取最大值
while (c<=a*b){
if (c%a==0&& c%b==0){
re=c;
break;
}
c++;
}
return re;
}
}