using System;
namespace _2D_Array2
{
class Program
{
static void Main(string[] args)
{
string[,] names = new string[2,3];
names[0,0] = "Red";
names[0, 1] = "Green";
names[0,2]="Blue";
names[1, 0] = "Black";
names[1, 0] = "White";
names[1, 0] = "Gray";
Console.WriteLine(names[1,0]);
Console.ReadKey();
}
}
}
namespace _2D_Array2
{
class Program
{
static void Main(string[] args)
{
string[,] names = new string[2,3];
names[0,0] = "Red";
names[0, 1] = "Green";
names[0,2]="Blue";
names[1, 0] = "Black";
names[1, 0] = "White";
names[1, 0] = "Gray";
Console.WriteLine(names[1,0]);
Console.ReadKey();
}
}
}
Comments
Post a Comment