int i,j;
for (i=0;i<=myArray.GetLength();i++)
{
for (j=0;j<=myArray.GetLength();j++)
{
// use myArray[i,j] to output the data
}
}
int[][] mul;
mul=new int[4][];
mul[0] = new int[5] {0,1,2,3,4};
mul[1] = new int[5] {0,1,2,3,4};
mul[2] = new int[5] {0,1,2,3,4};
mul[3] = new int[5] {0,1,2,3,4};
int counter=0;
foreach(int[] j in mul)
{
foreach(int i in j)
{
Console.Write("{0},{1} ",counter,i);
}
Console.WriteLine();
counter++;
}