Saturday 22 November 2014

Number Pattern in C# - 8

Output of Number Pattern in C-sharp 8
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();
}
}
}