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