我的怎么不會(huì)換行的?
for(int x=1;x<=7;x++)
? ? ? ? ? ?{
? ? ? ? ? ? ? ?for(int y=1;y<=7;y++)
? ? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ? ?if(x+y==2||x+y==4||x+y==6||x+y==8||x+y==10||x+y==12||x+y==14)
? ? ? ? ? ? ? ? ? ?{Console.Write("O");}
? ? ? ? ? ? ? ? ? ?else
? ? ? ? ? ? ? ? ? ? { Console.Write(".");}
? ? ? ? ? ? ? ? ? ??
? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ?Console.WriteLine();
? ? ? ? ? ?}//請(qǐng)完善代碼
2017-02-19
換行的是Console.WriteLine()