问答详情
源自: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:14

个回答

  • 小新说他爱骢骢
    2016-11-17 22:17:34

    你的前提是x+y=8