Blog

What is the output of the code below?

int x = 2, y = 0;
while(++x <= 5) { y++;
}
Console.WriteLine(“x = ” + x + “ y = ” + y);