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
Maha
NA
0
326.5k
Read()
Jul 10 2013 9:10 AM
This program is given in the following website:
http://www.dotnetperls.com/console-read
According to code
while ((result = Console.Read()) != 0)
program must end when input is 0, but it is not ending. Please explain the reason. Problem is highlighted.
using System;
class Program
{
static void Main()
{
int result;
while ((result = Console.Read()) != 0)
{
Console.WriteLine("{0} = {1}", result, (char)result);
}
Console.ReadKey();
}
}
Reply
Answers (
7
)
how to change picturebox image to another image?
GTK# : how to load widget at runtime