回答編集履歴
1
修正
test
CHANGED
@@ -58,13 +58,13 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
-
private string IndexToString(int ind
|
61
|
+
private string IndexToString(int index)
|
62
62
|
|
63
63
|
{
|
64
64
|
|
65
|
-
if (ind
|
65
|
+
if (index < 1 || index > 2) throw new ArgumentException(nameof(index));
|
66
66
|
|
67
|
-
return new[] { "りんご", "みかん" }[ind
|
67
|
+
return new[] { "りんご", "みかん" }[index - 1];
|
68
68
|
|
69
69
|
}
|
70
70
|
|