using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i <= 9; i++) //打印行数
{
for (int j = 1; j <= 9 - i; j++) //每行打印的空白个数
{
Console.Write(" ");
}
for (int j = 1; j <= 2 * i - 1; j++) //每行打印*的个数
{
Console.Write("*");
}
Console.WriteLine(); //换行
}
Console.ReadLine();
}
}
}