Print Odd Numbers Only

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

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

Comments or Responses

Login to post response