for (int i = 0; i < 10; i++) if (i % 2 == 0) System.out.println("even"); else System.out.println("odd");