public static void Main()
Console.Write("Display the pattern like pyramid containing odd number of asterisks:\n");
Console.Write("----------------------------------------------------------------------");
Console.Write("Input number of rows for this pattern :");
n= Convert.ToInt32(Console.ReadLine());
Console.Write("Input number -1 to exit other number to continue:");
w = Convert.ToInt32(Console.ReadLine());
Console.Write("Process terminated");