Jes Sie

Jes Sie

  • 708
  • 1.2k
  • 265.3k

School Project in Console Application

Nov 14 2020 12:55 AM
This is a very shameful question. But, I really don't have experience in the console app. I have this code below
  1. Console.WriteLine("Enter 10 names:\n");  
  2.   
  3.             string[] names = new string[10];  
  4.   
  5.   
  6.             foreach (string n in names)  
  7.             {  
  8.                 Console.ReadLine();  
  9.             }  
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.

Answers (4)