public class Main {
public static void main(String[] args) {
int a = 0;
for (int number = 100; number <= 1000; number++) {
if (number % 5 == 0 &&number % 6 == 0){
a++;
System.out.print(number + " ");
if (a % 10 == 0) {
System.out.println();
}
}
}
System.out.print("");
}
}
08-28
1779
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)