|
Fig: Snapshot of Output |
using System;
class Patters_test
{
public static void Main()
{
int row,i;
Console.Write("Enter the no. of row you have to print: ");
row=Convert.ToInt32(Console.ReadLine());
for(;row>0;row--)
{
for(i=0;i<row;i++)
Console.Write("#");
Console.WriteLine();
}
}
}