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
Mngaro Mwazenje
NA
80
13.1k
how to locate numbers in a list if u input the numbers??
Feb 12 2020 4:06 PM
the code i need is to print out the numbers when i input from where....to where!! ....noob here
public
static
void
Main(
string
[] args)
{
List<
int
> list =
new
List<
int
>();
while
(
true
)
{
int
input = Convert.ToInt32(Console.ReadLine());
if
(input == -1)
{
break
;
}
list.Add(input);
}
Console.WriteLine(
"From where"
);
int
number = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(
"To where"
);
int
number2 = Convert.ToInt32(Console.ReadLine());
for
(
int
i = 0; i < list.Count; i++)
Console.WriteLine(i);
Reply
Answers (
1
)
C# MySql remote connection is slow
Rdlc Report viewer