美文网首页
2018-12-20

2018-12-20

作者: 追魂_409e | 来源:发表于2018-12-20 08:43 被阅读0次

Console.WriteLine("请输入倒金字塔的塔高");

            int n = Convert.ToInt32(Console.ReadLine());

            for (int i = 1; i <= n; i++)

            {

                for (int j = i; j <= n; j++)

                {

                    Console.Write("* ");

                }

                Console.WriteLine(" ");

            }

            Console.ReadKey();

相关文章

网友评论

      本文标题:2018-12-20

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