try
{
int num = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= num; i++)
{
for (int j =0; j < num-i; j++)
{
Console.Write(" ");
}
for (int j = 0; j < 2 * i - 1; j++ )
{
Console.Write("*");
}
Console.WriteLine();
}
}
catch
{
}
Console.ReadKey();