TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anoop kumar
NA
19
2.8k
Scenairo - Print odd numbers from user input number.
Aug 29 2018 3:35 AM
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();
}
}
Reply
Answers (
9
)
Temporary Listview
Application installed or not