JAVA编程 输入两个正整数m和n,输出它们的最小公倍数和最大公约数不要改变与输入输出有关的语句import java.util.*;public class Test40014 {public static void main(String []args){\x05 Scanner in =new Scanner(System.in);\x05 int gcd,lcm,m,n,r;\x05 int repeat,ri;\x05 repeat=in.nextInt();\x05 for(ri = 1; ri

问题描述:

JAVA编程 输入两个正整数m和n,输出它们的最小公倍数和最大公约数
不要改变与输入输出有关的语句
import java.util.*;
public class Test40014 {
public static void main(String []args){
\x05 Scanner in =new Scanner(System.in);
\x05 int gcd,lcm,m,n,r;
\x05 int repeat,ri;
\x05 repeat=in.nextInt();
\x05 for(ri = 1; ri

import java.util.*;
public class Test40014 {
public static void main(String []args){
Scanner in =new Scanner(System.in);
int gcd, lcm, m, n,r;
int repeat, ri;
repeat=in.nextInt();
for(ri = 1; ri