|
|
Arrays
/csbook/solutions/03/A06.cs
using System;
class Test {
public static void Main() {
string[,] a = {
{"black", "white"},
{"above", "below"},
{"north", "south"}};
for (int i = 0; i < a.GetLength(0); i++) {
for (int j = 0; j < a.GetLength(1); j++) {
Console.Write(a[i,j] + " ");
}
Console.WriteLine();
}
}
}
|
|