Program jobcandidates.cs

Demonstrates use of a two-dimensional array 




using System;

class Program
{
    static void Main()
    {

        string[,] candidates = {
                {"Mr. Johnson", "resume #1", "personal reference #1"},
                {"Ms. Burton", "resume #2", "personal reference #2"},
                {"Ms. Smith", "resume #3", "personal reference #3"}
        };

        Console.WriteLine();

        for(int i=0; i<3; i++){

                for(int j=0; j<3; j++){

                        Console.WriteLine("\t{0}",candidates[i,j]);

                }//end nested loop

                Console.WriteLine();
        }//end outer loop

	Console.Write("Press the Enter key to end program... ");
        Console.ReadLine();


    }
}