问答详情
源自:4-10 编程练习

求解,为什么错了

using System;
using System.Collections.Generic;
using System.Text;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            int x;
            for(x=1;x<8;x++)
            {
                int y;
                for(y=1;y<8;y++)
                {
                    if(x == y||x+y==8)
                    {
                        Console.Write("O");
                    }
                    else
                    {
                        Console.Write(".");
                    }
                }
                console.writeLine();
            }//请完善代码
           
        }
    }
}


提问者:仙剑莫一兮 2016-11-17 21:24

个回答

  • Black4373673
    2016-11-17 22:45:47

    最后一个C没注意大小写