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
人气:384 ℃ 时间:2019-10-15 08:20:30
解答
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
推荐
猜你喜欢