I hate to be stupid but does this program solve the problem of testing an integer to be divisible by 6?
static void Main()
Console.Write("\nEnter a integer: ");
number = Convert.ToInt32(Console.ReadLine());
if ((number % 2 == 0) && (number % 3 == 0))
Console.Write("\nThe number is divisible by 6!");
Console.Write("\nThe number is not divisible by 6!");