> 其他 >
编写两个方法,分别求两个数的最大公约数和最小公倍数
JAVA的
人气:325 ℃ 时间:2020-04-06 03:28:46
解答
public class test { public static void main(String[] args)throws Exception { int p,r,n,m,temp; System.out.println("请输入两个正整数n,m:"); n=System.in.read(); m=System.in.read(); if(n
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版