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 PatelRank #614 · 3.9K reputationPosted Sep 6, 2018, 9:39 AM EDT
Actually, you can solve this issue via string manipulation as well.
Sai Kumar KoonaRank #334 · 7.5K reputationPosted Sep 6, 2018, 12:50 AM EDT
Pushkar Pushp99 reputationPosted Aug 29, 2018, 12:01 AM EDT
anoop kumar13 reputationPosted Aug 29, 2018, 6:28 AM EDT
anoop kumar13 reputationPosted Sep 6, 2018, 3:08 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Sep 6, 2018, 8:03 AM EDT
anoop kumar13 reputationPosted Sep 6, 2018, 8:45 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Sep 6, 2018, 9:30 AM EDT