public static void main(String[] args) { function1(); } private static void function1() { int i,n=0; for(i=1;i<=100;i++){ if(i%10==9||i/10==9) continue; else System.out.print(i+" "); n++; if(n%5==0) System.out.println(); } }
public static void main(String[] args) { function1(); } private static void function1() { int i,n=0; for(i=1;i<=100;i++){ if(i%10==9||i/10==9) continue; else System.out.print(i+" "); n++; if(n%5==0) System.out.println(); } }
相关课程