Scanner scan = new Scanner(System.in);
System.out.println("è¾å
¥ä¸¤ä¸ªæ°ç¨\",\"åé");
String[] s = scan.nextLine().split(",");
int a = Integer.parseInt(s[0]);
int b = Integer.parseInt(s[1]);
int count = a>=b?b:a;
for(int i =1;i<=count;i++){
if(a%i==0 && b%i==0){
System.out.println(a+"å"+b+"çå
¬çº¦æ°æ"+i);
}
}
追é®ï¼æ¯ä»ä¹ææ