美文网首页
第十五节课第二个课上练习

第十五节课第二个课上练习

作者: 流影随风 | 来源:发表于2018-12-20 09:32 被阅读0次

    #编码

               Console.Write("输入行数:");

                string str_a = Console.ReadLine();

                int a = Convert.ToInt32(str_a);

                for (int i = a; i > 0; i--)

                {

                    for (int j = 0; j < 2 * i - 1; j++)

                    {

                        Console.Write("*");

                    }

                    Console.WriteLine();

                }

                Console.ReadKey();

    #效果

    相关文章

      网友评论

          本文标题:第十五节课第二个课上练习

          本文链接:https://www.haomeiwen.com/subject/zueekqtx.html