Question: From this code: using System; public class Program { public static void Main() { string[] week = new string[7]; week[0] = Sunday; week[1] = Monday;

From this code:

using System;

public class Program

{

public static void Main()

{

string[] week = new string[7];

week[0] = "Sunday";

week[1] = "Monday";

week[2] = "Tuesday";

week[3] = "Wednsday";

week[4] = "Thursday";

week[5] = "Friday";

week[6] = "Saturday";

for (int i = 0; i <= week.Length - 1; i++)

{

Console.WriteLine(week[i]);

}

}

}

Populate a List with the items from the array (Hint: loop through each item in the array).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!