using System;
public class Program
{
public static void Main()
int[][] jaggedArray = new int[][]{
new int[] {2, 3, 5, 7, 11},
new int[] {1, 8, 6},
new int[] {13, 21}
};
// loops through the row based on the max row length
for (int row = 0; row < jaggedArray.Length; row++)
// Loops through the columns based on max columns in each row
for (int column = 0; column < jaggedArray[row].Length; column++)
// fun stuff can go in here for each column. or if its a 3d array you can nest the loops even further...
Console.Write("[{0}][{1}] = {2}, ", row, column, jaggedArray[row][column]);
}
Console.WriteLine();