请问答案在哪?

来源:2-4 C#的常量

精慕门6454581

2017-10-10 19:31

请问答案在哪找

写回答 关注

3回答

  • H去吧皮卡丘
    2018-07-21 15:13:28

    同学代码呀

  • qq_MovefeelingH_0
    2018-05-29 11:23:23

    o.....o
    .o...o.
    ..o.o..
    ...o...
    ..o.o..
    .o...o.
    o.....o

  • Robmy
    2017-10-10 20:25:30

    using System;

    using System.Collections.Generic;

    using System.Text;


    namespace Test

    {

        class Program

        {

            static void Main(string[] args)

            {

                for(int h=1;h<=7;h++)

                {

                    for(int l=1;l<=7;l++)

                    {

                        if(l==h||l==8-h)

                        Console.Write("o");

                        else

                        Console.Write(".");

                    }

                    Console.WriteLine("");

                }

                

            }

        }

    }


C#开发轻松入门

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

255672 学习 · 1524 问题

查看课程

相似问题