回答編集履歴
1
結果をリストに格納
answer
CHANGED
@@ -5,7 +5,8 @@
|
|
5
5
|
|
6
6
|
var countries = countryNo.
|
7
7
|
Zip(countryName, (no, name) => new {no, name}).
|
8
|
-
Zip(capitalCity, (x, city) => new { x.no, x.name, city})
|
8
|
+
Zip(capitalCity, (x, city) => new { x.no, x.name, city}).
|
9
|
+
ToList();
|
9
10
|
|
10
11
|
foreach (var country in countries) {
|
11
12
|
Console.WriteLine($"No.{country.no}, 国名:{country.name}, 首都:{country.city}");
|