✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Что выведет фрагмент программы?
string[] dig = {"один", "три", "один", "два"};
stringoutstr = String.Empty;
foreach(string str indig)
switch
(str)
{
case
"один":
outstr = outstr.Insert(0, "1");
break
;
case
"два":
outstr = outstr.Insert(0, "2");
break
;
case
"три":
outstr += "3";
break
;
}
Console.WriteLine(outstr);