package struct;
public class ForDemo3 {
public static void main(String[] args) {
//用for或while输出0-1000之间能被5整除的数,并且每行输出三个;
for (int i = 1; i <= 1000; i++) {
if(i%5==0){
System.out.print(i+"\t");
}
if(i%(5*3)==0){
System.out.println();
}
}
}
}











