Main.cs
using
System;
class
Program {
-
public
static
int
Main() {
-
int
[][] ara =
new
int
[3][];
-
ara[0] =
new
int
[3] {1, 2, 3};
-
ara[1] =
new
int
[4] {10, 20, 30, 40};
-
ara[2] =
new
int
[5] {100, 200, 300, 400, 500};
-
for
(
int
i=0; i<ara[0].Length; i++) {
-
Console.Write(
"{0} "
,ara[0][i]);
-
}
-
Console.WriteLine();
-
for
(
int
i=0; i<ara[1].Length; i++) {
-
Console.Write(
"{0} "
, ara[1][i]);
-
}
-
Console.WriteLine();
-
for
(
int
i=0; i<ara[2].Length; i++) {
-
Console.Write(
"{0} "
, ara[2][i]);
-
}
-
Console.ReadKey();
-
return
0;
-
}
}
using
System;
class
Program {
-
public
static
int
Main() {
-
int
[][] ara =
new
int
[3][];
-
ara[0] =
new
int
[3] {1, 2, 3};
-
ara[1] =
new
int
[4] {10, 20, 30, 40};
-
ara[2] =
new
int
[5] {100, 200, 300, 400, 500};
-
for
(
int
i=0; i<ara[0].Length; i++) {
-
Console.Write(
"{0} "
,ara[0][i]);
-
}
-
Console.WriteLine();
-
for
(
int
i=0; i<ara[1].Length; i++) {
-
Console.Write(
"{0} "
, ara[1][i]);
-
}
-
Console.WriteLine();
-
for
(
int
i=0; i<ara[2].Length; i++) {
-
Console.Write(
"{0} "
, ara[2][i]);
-
}
-
Console.ReadKey();
-
return
0;
-
}
}
1 2 3
10 20 30 40
100 200 300 400 500
10 20 30 40
100 200 300 400 500