int num = 100; if (num % 2 == 0){ Console.WriteLine($"{num} is an even number"); } else if (num % 2 != 0){ Console.WriteLine($"{num} isn't an even number"); } // wait before closing Console.ReadKey();