This is a very shameful question. But, I really don't have experience in the console app. I have this code below
- Console.WriteLine("Enter 10 names:\n");
-
- string[] names = new string[10];
-
-
- foreach (string n in names)
- {
- Console.ReadLine();
- }
Now, I need to search for a name from the list. If found, I want to display "found" and "not found" if the searched name is not from the list. thanks for any help.