Code
using System;
namespace _03_09{
class Class_03_09{
public static void Main(String[] args)
{
int[][,] intArrayOfAry2=new int[2][,];
intArrayOfAry2[0]=new int[3,4];
intArrayOfAry2[1]=new int[3,2];
int k=0;
for(int i=0;i<intAryOfAry2[0].GetLength(0);++i)
{
for(int j=0;j<intAryofAry2[0],GetLength(1);++j){
intAryOfAry2[0][i,j]=++k;}
}
for(int i=0;i<intAryOfAry2[1].GetLength(0);++i)
{
for(int j=0;j<intAryOfAry2[1].GetLength(1);++j)
{
intAryOfAry2[i][i,j]=--k;
}
}
Console.WriteLine("intAryOfAry2[0];");
for(int i=0;i<intAryOfAry2[0].GetLength(0);++i)
{
for(int j=0;j<intAryOfAry2[0].GegLength(1);++j)
{
Console.WriteLine("{0,5}",intAryOfAry2[1][i,j]);
}
Console.WriteLine();
}
}
}
}
using System;
namespace _03_09{
class Class_03_09{
public static void Main(String[] args)
{
int[][,] intArrayOfAry2=new int[2][,];
intArrayOfAry2[0]=new int[3,4];
intArrayOfAry2[1]=new int[3,2];
int k=0;
for(int i=0;i<intAryOfAry2[0].GetLength(0);++i)
{
for(int j=0;j<intAryofAry2[0],GetLength(1);++j){
intAryOfAry2[0][i,j]=++k;}
}
for(int i=0;i<intAryOfAry2[1].GetLength(0);++i)
{
for(int j=0;j<intAryOfAry2[1].GetLength(1);++j)
{
intAryOfAry2[i][i,j]=--k;
}
}
Console.WriteLine("intAryOfAry2[0];");
for(int i=0;i<intAryOfAry2[0].GetLength(0);++i)
{
for(int j=0;j<intAryOfAry2[0].GegLength(1);++j)
{
Console.WriteLine("{0,5}",intAryOfAry2[1][i,j]);
}
Console.WriteLine();
}
}
}
}