13行有啥問題呀
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ?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();
? ? ? ? ? ?}//請(qǐng)完善代碼
? ? ? ? ? ??
? ? ? ? }
? ? }
}
2022-08-28
y=7錯(cuò)了,是y<=7