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
search for string in a list if found say "name" found if not
Feb 17 2020 2:15 AM
public
static
void
Main(
string
[] args)
{
List<
string
> list =
new
List<
string
>();
while
(
true
)
{
string
input = Console.ReadLine();
if
(input ==
""
)
{
break
;
}
list.Add(input);
}
Console.WriteLine(
"Search for "
);
string
look = Convert.ToString(Console.ReadLine());
list.Contains(look);
Console.WriteLine(
"found "
+ look);
Reply
Answers (
5
)
need help to implement the attached project
print the range between given numbers, input by user