using System;
class PatternProgramming
{
 public static void Main()
 {
  int i,row;
  Console.Write("Enter the no. of line you have to print: ");
  row=Convert.ToInt32(Console.ReadLine());
  for(;row>=1; row--)
  {
   for(i=1;i<=row;i++)
   Console.Write(i);
   Console.WriteLine();
  }
 }
}
  | 
Fig: Snapshot of Output
 
  |