# Exercise 5

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

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