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
Asad Mairaj
NA
10
0
I want only Integer Input...!
Aug 13 2008 3:47 AM
hi em new in Csharp Language...!
i want take only Integer input or you can say any number...!
if user enter any character then it takes input again until they enter correct number....!
my code is:
int mynum;
String number;
Console.WriteLine("Please Enter the roll number");
number = Console.ReadLine();// this is used for take input as a string
mynum = int.Parse(number); // this is used for to convert String nto integer.
// i dont konow what is the next step for take only integer input
Reply
Answers (
8
)
PAC file parsing in C#
Some help with a small piece of code