#代码
Console.WriteLine("请输入直角金字塔的塔高");
int i, j, n;
n = Convert.ToInt32(Console.ReadLine());
for (i = 0; i < n+1; i++)
{
for (j = 0; j<i*2-1; j++)
Console.Write("* ");
Console.WriteLine();
}
Console.ReadKey();
#代码
Console.WriteLine("请输入直角金字塔的塔高");
int i, j, n;
n = Convert.ToInt32(Console.ReadLine());
for (i = 0; i < n+1; i++)
{
for (j = 0; j<i*2-1; j++)
Console.Write("* ");
Console.WriteLine();
}
Console.ReadKey();