# Exercise 6

Will this program compile? What is output of this program? Do not use IDE to answer this question.

int num = 11;
if (num % 2)
{
  Console.WriteLine($"{num} is odd");
}
else
{
  Console.WriteLine($"{num} is even");
}
1
2
3
4
5
6
7
8
9
Last Updated: May 1, 2020, 3:26 PM