[Solved] Conditional Statement on Java7
You’re mixing up && and ||, so your first if will never run as mentioned in the comments. So it looks like the only “Not Weird” print out is 2, 4 and even numbers > 20. So use this to your advantage to just check for the “Weird” outputs, otherwise print “Not Weird”. if (n … Read more