package com.edu.jsu.lian;
public class lianxi {
public static void main(String[] args) {
int x = 1,count = 0;
System.out.println("====输出1~100不能被3整除的整数====");
for(; x <= 100; x++){
if(0 == x % 3){//该数能被3整除,跳转到循环语句开始处
continue;
}
System.out.println(x + "");
count++;
if(0 == count % 10){//如果输出了10这个数
System.out.println();//输出换行
}
}
}
}
03-30
557
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-10
2640
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)