using System;
using System.Linq;
namespace Colors // name of project
{
class Colors // class name
{
static void Main(string[] args)
{
//initialize array colors as below
string[] colors = {"Red","White","Green","Pink","Yellow","Black"};
Console.WriteLine("The Length of an Array is {0}",colors.Length);
for (int t = 0; t
{
string element = colors[t]; //define element at index t
Console.WriteLine(element); // print array element
}
Console.ReadKey();
}
}
}