Saturday 22 November 2014

Star Pattern in C# - 4

Star Pattern type 4 in C# tutorial
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();
}
}
}