為什么這樣出來是沒換行的?
for (int x = 1; x <= 7; x++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? for (int y = 1; y <= 7; y++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? if (x == y || x + y == 8)
? ? ? ? ? ? ? ? ? ? { Console.Write("O"); }
? ? ? ? ? ? ? ? ? ? else
? ? ? ? ? ? ? ? ? ? { Console.Write("."); }
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }
? ? ? ? ? ? Console.WriteLine();
2018-06-16
換行寫到了外層循環(huán)之外。