package Day2; public class For2 { public static void main(String[] args) {
for (int i = 0; i <= 1000; i++) { if (i%5==0){ System.out.print(i+"\t");//不换行 } if(i%(5*3)==0){ System.out.println();//换行 } } } }
package Day2; public class For2 { public static void main(String[] args) {
for (int i = 0; i <= 1000; i++) { if (i%5==0){ System.out.print(i+"\t");//不换行 } if(i%(5*3)==0){ System.out.println();//换行 } } } }