fork download
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6. String n = scanner.next();
  7. if(n.length()>1) n = n.substring(n.length()-1);
  8. int test = 0;
  9. int N = Integer.parseInt(n);
  10. String [] st = new String[N];
  11.  
  12. for(int i=0;i<N;i++) {
  13. test = scanner.nextInt();
  14. if(test%2==0)st[i]="even";
  15. else st[i]="odd";
  16. }
  17. for(int i=0;i<N;i++) {
  18. System.out.println(st[i]);
  19. }
  20. scanner.close();
  21. }
  22. }
  23.  
Success #stdin #stdout 0.12s 56684KB
stdin
10
1
2
3
4
5
6
7
8
9
10
stdout
Standard output is empty