|
Fig: Screenshot 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(int j=1;j<=row;j++)
{
for(i=1;i<=j;i++)
Console.Write(i);
Console.WriteLine();
}
}
}