import java.util.Scanner;
class Main {
public static void main(String[] args) {
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
System.out.println("Hello JSRUN! \n\n - from JAVA .");
Scanner sc = new Scanner(System.in);
System.out.println("请输入两个整数,求他们的最小公倍数:");
int a = sc.nextInt();
int b = sc.nextInt();
int c;
//讲
if(a>b){
c=a;
}else{
c=b;
}
for( int i=c; i<a*b; i++){
if( (c%a==0) && (c%b==0))
break;
c++;
}
System.out.println("最小公倍数是:"+c);
}
}