# Exercise 3

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

int num = 5;
if (num % 2 == 0)
{
  Console.WriteLine($"{num} is divisible by 2");
}
else if (num % 3 == 0)
{
  Console.WriteLine($"{num} is divisible by 3");
}
else
{
  Console.WriteLine($"{num} is not divisible by 2 or 3");
}
`
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Last Updated: May 1, 2020, 3:31 PM