fork download
  1. class Test{
  2. public static void main(String[] args){
  3. int[] num={5,16,8,13,23,11,24,33,34,35};
  4. for (int i=0; i<10;i++){
  5. if ((num[i]%3>=1) && (num[i]%2 == 0))
  6. System.out.println("Abernathy");
  7. else
  8. System.out.println("not Abernathy"); }
  9. }}
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
not Abernathy
Abernathy
Abernathy
not Abernathy
not Abernathy
not Abernathy
not Abernathy
not Abernathy
Abernathy
not Abernathy