摘要: 比如: 16=2*2*2*2 45=3*3*5 //分解质因数的模板代码(因子只能是质数) public static void factor(int num) { System.out.print("质因数分解的结果为:"); for (int i = 2; i <= Math.sqrt(num) 阅读全文
posted @ 2020-03-22 16:05 JohnTesla 阅读(231) 评论(0) 推荐(0) 编辑