public static void Main(string[] args)
Console.Write("Display the pattern like right angle triangle with number increased by 1:\n");
Console.Write("---------------------------------------------------------------------------");
Console.Write("Input number of rows : ");
rows = Convert.ToInt32(Console.ReadLine());
for (i = 1; i <= rows; i++)
Console.Write("{0} ", k++);