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