using System;
public class Program
{
public static void Main()
var levels = 7;
var charactersPerLine = levels * 2 - 1;
var spaces = charactersPerLine / 2;
var stars = 1;
for (int i = 0; i < levels; i++)
Console.WriteLine(new string(' ', spaces) + new string('*', stars) + new string(' ', spaces));
--spaces;
stars += 2;
}