摘要: 1 package test; 2 3 //指定一个int数 在一行中打印这个数的所有因数 用空格隔开。 4 5 6 7 public class test2 { 8 public static void main(String args[]) { 9 10 int i = 100;11 for (int j = 1; j <= 100; j++) {12 13 if (i % j == 0)14 System.out.println(j + " ");15 16 }17 ... 阅读全文