public static void test13() {
int count=0;
for(int i=1;i<1000;i++) {
if(i%3==2 && i%5==3 && i%7==2) {
count++;
System.out.print(" "+i);
if(count%5==0) {
System.out.println();
}
}
}
}
1至1000之间除以3余2;除以5余3;除以7余2所有数字,每五个数换行
猜你喜欢
转载自blog.csdn.net/qq_34491508/article/details/81258837
今日推荐
周排行