Day 3: Intro to Conditional Statements

  • + 0 comments

    Java with a Ternary Operator:

    String myAnswer = N % 2 == 1 || (N >= 6 && N <= 20) ? "Weird" : "Not Weird"; `