不知道哪里出錯(cuò),求解
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? for(int x=1;x<8;x++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? for(int y=1;y<8;y++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? if(y==x||y==(8-x))
? ? ? ? ? ? ? ? ? ? Console.Write('O');
? ? ? ? ? ? ? ? ? ? else
? ? ? ? ? ? ? ? ? ? Console.Write('.');
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? Console.Writeline();
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2018-08-05
最后那個(gè)Console.WriteLine();?
L得大寫(xiě)