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
Aravind Chitra
NA
11
1.6k
c# programming doubt
Sep 28 2014 10:38 AM
hello all,
the following code is not working as expected
CODE
Console.WriteLine("enter alphabet");
int c = Console.Read();
Console.WriteLine(c);
Console.WriteLine("enter string");
string j = Console.ReadLine();
Console.WriteLine(j);
Console.ReadKey();
it doesn't allow to enter the string and just exits the program
but if code is reversed,it works fine
Console.WriteLine("enter string");
string j = Console.ReadLine();
Console.WriteLine(j);
Console.WriteLine("enter alphabet");
int c = Console.Read();
Console.WriteLine(c);
Console.ReadKey();
can anyone explain this??
Reply
Answers (
13
)
Adding up numbers by 6
Checking few methods of node deletion in link list in C++