You are viewing a single comment's thread. Return to all comments →
boolean even = N % 2 == 0;
if (even && (2 < N && N < 5 || N>20 )) { System.out.println("Not Weird"); } else{ System.out.println("Weird"); }
Java If-Else
You are viewing a single comment's thread. Return to all comments →
boolean even = N % 2 == 0;