using System;
class Pattern_star
{
public static void Main()
{
int i,row;
Console.Write("Enter the no. of row you want to print: ");
row=Convert.ToInt32(Console.ReadLine());
for(i=1;i<=row;i++)
{
for(int j=1;j<=i;j++)
Console.Write("#");
Console.WriteLine();
}
}
}
|
Fig: Snapshots of output |