# Exercise 2

Will this code compile and run? Do not use IDE to answer this question. If this code is incorrect, then explain the issue and fix it.

using System;

class MainClass
{
  public static void Main ()
  {
    Console.WriteLine($"{(4 % 2 == 0) ? "even" : "odd"}");
  }
}
1
2
3
4
5
6
7
8
9
Last Updated: May 1, 2020, 5:22 AM