title: How would I implement a nested for loop into this to make a search facility of contacts?
body: <p>I've wrote a simple program to store contact numbers, the data entered is fake at the minute, which I plan to update later, but I basically want to add in a nested for loop to add in a search facility, can anyone help me? Happy Christmas people :)</p>
  
  <p>Here is my coding so far:</p>
  
  <pre><code>//declare variables
  int iRow;
  string sSearch;
  
  //Declare arrays
  string[,] sContacts = new string[,] {
                                        {"John", "07621456900"},
                                        {"Jasper", "07843456377"},
                                        {"June", "07935254678"},
                                        {"Jim", "07945112623"},
                                        {"Jackie", "07431733507"}, };
  
  //Search facility for contacts
  Console.WriteLine("Who would you like to search for?");
  sSearch = Console.ReadLine();
  
  //Display a heading
  Console.Clear();
  Console.WriteLine("My top 5 contacts are: ");
  Console.WriteLine();
  
  //Display the names and numbers (using a for loop)
  for (iRow = 0; iRow &lt; sContacts.GetLength(0); iRow++)
  {
      Console.WriteLine(sContacts[iRow, 0] + ": " + sContacts[iRow, 1]);   //The [0] indicates the first section of the array (The name), 
      //and [1] indicates the second (The phone number)
      Console.WriteLine();
  }
  
  //Prevent program from closing
  Console.WriteLine("Press any key to close");
  Console.ReadKey();
  </code></pre>