public static void Main()
string userinput = "exit";
Console.Write("Display the pattern like pyramid:\n");
Console.Write("-----------------------------------");
Console.Write("Input number of rows for this pattern type <exit> to stop the loop: ");
userinput = Console.ReadLine();
Console.WriteLine("You've stop the loop! ");
n = Convert.ToInt32(userinput);
for (j = 1; j <= n - i; j++)
for (j = 1; j <= 2 * i - 1; j++)