using System;
namespace While_Loop
{
class Program
{
static void Main(string[] args)
{
int i=1;
while (i < 10)
{
if (i%2==0)
{
i++;
continue;
}
Console.WriteLine("Odd number found:{0}",i);
i++;
}
Console.ReadKey();
}
}
}
namespace While_Loop
{
class Program
{
static void Main(string[] args)
{
int i=1;
while (i < 10)
{
if (i%2==0)
{
i++;
continue;
}
Console.WriteLine("Odd number found:{0}",i);
i++;
}
Console.ReadKey();
}
}
}
Comments
Post a Comment