Print Even Numbers Only.

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

for (int i = 2; i < 10; i+=2)
{
Console.Write(i);
}
Console.Out.Flush();
var name = Console.ReadLine();
}

Comments or Responses

Login to post response