Day 3: Intro to Conditional Statements

  • + 0 comments

    C# Solution, a one-line lamba expression:

    Console.WriteLine(N % 2 == 0 && (N < 6 || N > 20) ? "Not Weird" : "Weird");