Foreach to 2 dimension array

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 807
using System;
using System.Threading;
using System.Globalization;
using System.Data.SqlClient;
namespace Test1
{
class Program
{
static void Main(string[] args)
{

int[,] numbers = new int[3, 2] { { 100, 200 }, { 300, 400 }, { 500, 600 } };
foreach (int i in numbers)
{
Console.Write("{0} ", i);
}
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response