using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace 等腰三角形
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入行数:");
int rows = int.Parse(Console.ReadLine());
for (int i = 0; i < rows; i++)
{
for (int m = rows - 1; m > i; m--)
{
Console.Write(" ");
}
for (int j = 0; j < 2 * i + 1; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadKey();
// * 4 3 2 1 0 5行
// ***
// *****
//*******
//*********
}
}
}