int [] array= new int[100]; for(int i =0;i<array.length;i++){ array=i+1; if (i%2==0){ System.out.println(array); } 1 3 5 7