为了账号安全,请及时绑定邮箱和手机立即绑定

???????

using System;

using System.Collections.Generic;

using System.Text;



namespace Test

{

    class Program

    {

        static void Main(string[] args)

        {
            for(int i = 0;i < 7;i++)
            {
                for(int j = 0;j < 7;j++)
                {
                    if(j == i || i == 7-j-1)
                    {
                        Console.Write("0");
                    }
                    else
                    {
                        Console.Write(".");
                    }
                }
                Console.WriteLine();
            }
        }
    }
}


正在回答

2 回答

不是数字0,是字母o

0 回复 有任何疑惑可以回复我~

https://img1.sycdn.imooc.com/65edb54600015ace05270530.jpg我的是这样的,你的第24行,试试改成i+j=8

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
C#开发轻松入门
  • 参与学习       251671    人
  • 解答问题       1448    个

本门课程是C#语言的入门教程,将带你轻松入门.NET开发

进入课程
意见反馈 帮助中心 APP下载
官方微信