class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter the lenth of pyramid");
int l = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= l; i++)
{
for (int j = 1; j <= l - i; j++)
{
Console.Write(" ");
}
for (int j = 1; j <= 2 * i - 1; j++)
{
Console.Write("*");
}
Console.WriteLine(" ");
}
Console.Read();
}
}