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

为什么无法运行

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("");
            }
        }
    }
}


提问者:慕前端3256020 2019-04-02 09:24

个回答

  • 慕仙7423624
    2019-04-02 12:08:49

    else 那里你弄成了逗号