# Exercise 7
Will this program compile? What is output of this program? Do not use IDE to answer this question.
int num = 13;
if (num % 2 == 0)
{
Console.WriteLine($"{num} is even");
}
else
{
num = 14;
Console.WriteLine($"{num} is odd");
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
← Exercise 6 Exercise 8 →