using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { //int[] a=new int[3]; //一維陣列 int[,] a = new int[3,3]; for (int i = 0; i < 3;i++ ) { for (int j = 0; j < 3;j++ ) { a[i,j] = i + j; Console.Write(a[i, j]); Console.Write(" "); } Console.WriteLine(); } Console.Read(); } } }