logo

Crowdly

Browser

Add to Chrome

Что выведет фрагмент программы? string [] dig = {"один", "три", "один", "два"}; ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Что выведет фрагмент программы?

string

[] dig = {"один", "три", "один", "два"};

string

outstr = String.Empty;

foreach(string str in

dig)

 

switch

(str)

  {

 

case

"один":

  outstr = outstr.Insert(0, "1");

 

break

;

 

case

"два":

  outstr = outstr.Insert(0, "2");

 

break

;

 

case

"три":

  outstr += "3";

 

break

;

  }

Console.WriteLine(outstr);

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on dl.nure.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome