class Program
{
static void Main(string[] args)
{
int regen, result;
Console.WriteLine("Enter the Number");
int getnum = Convert.ToInt32(Console.ReadLine());
while (getnum > 0)
{
regen = getnum % 10;
result = regen;
getnum = getnum / 10;
if (result % 2 != 0)
{
Console.WriteLine("These are the Odd Numbers" + result);
}
}
Console.ReadKey();
}
}


Tapan PatelPosted Sep 6, 2018, 1:39 PM
Actually, you can solve this issue via string manipulation as well.
Rafnas T PPosted Sep 6, 2018, 11:48 PM
Tapan PatelPosted Sep 6, 2018, 1:30 PM