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