Reverse Print 5 to 1 Numbers

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 788
Reverse Print 5 to 1 Numbers
===================================
static void Main(string[] args)
{
Console.Write(" Serial Numbers :-> ");

for (int i = 1; i <= 5; i++)
{
Console.Write("\n");
for (int j = 5; j >= i; j--)
{
Console.Write(j);
}

}
Console.Out.Flush();
var name = Console.ReadLine();
}

Comments or Responses

Login to post response