using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 7;++i )
{
for (int k = 5; k >= i-2; k--) Console.Write(" ");
for (int j = 1; j <= 2 * i - 1; j++) Console.Write("*");
Console.Write("\n");
}
Console.Read();
}
}
}
三角形(2*)
最新推荐文章于 2023-03-18 09:57:29 发布