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