// MultiD.cpp : main project file.

#include "stdafx.h"

using namespace System;

int main(array<System::String ^> ^args)
{
	Console::WriteLine(L"Multidimensional Arrays");

    // Create a 2D array
    int arr[3][4];

    // Fill the array
	// the row...
    for(int i=0; i<3; i++)
		// the column
		for(int j=0; j<4; j++)
            arr[i][j] = (i+1)*(j+1);
			

	// Print the array content
	for(int i=0; i<3; i++)
	{
		for(int j=0; j<4; j++)
			Console::WriteLine("index = [{0}][{1}], content = {2}", i, j, arr[i][j]);
	}

    return 0;
}

