问答详情
源自:2-4 C#的常量

请问答案在哪?

请问答案在哪找

提问者:精慕门6454581 2017-10-10 19:31

个回答

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

                }

                

            }

        }

    }