1for (int i = 0; i < 5; i++) {
2 System.out.println("Enter an integer.");
3 x = in.nextInt();
4 if (x % 2 == 0) {
5 even++;
6 System.out.println(x + " is even.");
7 }
8 if (x % 2 == 1) {
9 odd++;
10 System.out.println(x + " is odd.");
11 }