Thanks, BPE.
x = Console.ReadLine();
This line also needs to be within the do-while loop, otherwise x never gets updated.