# 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
2
3
4
5
6
7
8
9
← Exercise 5 Exercise 7 →