Main.cs
using
System;
class
Program {
-
public
static
int
Main() {
-
int
[,] ara =
new
int
[2, 3] { { 1, 2, 3 }, { 10, 20, 30 } };
-
foreach
(var i
in
ara) {
-
Console.Write(
"{0} "
, i);
-
}
-
Console.ReadKey();
-
return
0;
-
}
}
using
System;
class
Program {
-
public
static
int
Main() {
-
int
[,] ara =
new
int
[2, 3] { { 1, 2, 3 }, { 10, 20, 30 } };
-
foreach
(var i
in
ara) {
-
Console.Write(
"{0} "
, i);
-
}
-
Console.ReadKey();
-
return
0;
-
}
}
1 2 3 10 20 30