public class Test{
public static void main(String[] args){
int temp1 = 90;
String str = "90=";
int temp2 = 2 ;
while(temp1 > 1){
if(temp1 % temp2 == 0){
temp1 /= temp2 ;
str += temp2 +"*" ;
}else{
temp2++ ;
}
}
System.out.println(str.substring(0,str.length()-1));
}
}
将正整数分解质因数
最新推荐文章于 2025-02-19 00:01:13 发布
419

被折叠的 条评论
为什么被折叠?



