for (int t : a) {
System.out.println(t);
}*/
String s = "9";
int index = 0;
while (s.length() < 9) {
if (new Integer(s).intValue() % a[index] == 0) {
System.out.println(s + "%" + a[index] + "=0");
if (index < 100 - 1) {
index++;
} else {
index = 0;
s = s + "9";
}
// System.exit(0);
} else {
if (index < 100 - 1) {
index++;
} else {
index = 0;
s = s + "9";
}
}
}
}
}
(二)
import java.util.*; public class Demo45 {
public static void main (String[] args) {
Scanner in = new Scanner(System.in);
JAVA经典算法50题(26)
JAVA经典算法50题(26).doc
将本文的Word文档下载到电脑

