Begin { End; string[] sname = new string[5]; sname[0] = "Muhammed"; sname[1] = "Ahmed Yacin"; sname[2] = "ilef"; //WriteLine(sname[0]); //WriteLine(snname[1]); WriteLine(snname[2]); WriteLine(snnam[1]);

icon
Related questions
Question
100%
Can someone help me know what the output of these ?
3)
Begin
{
}
2)
Begin
{
End;
End;
}
ArrayList MyArrayList = new ArrayList[];
MyArrayList.Add("Ahmed");
MyArrayList.Adde("Daoud");
MyArrayList.Add("Anna");
MyArrayList.Add("llef");
MyArrayList.Add("Nannce");
else
string[] sname = new string[5];
sname[0] = "Muhammed";
sname[1] "Ahmed Yacin";
sname[2] = "ilef";
//WriteLine(sname[0]);
//WriteLine(snname[1]);
WriteLine(snname[2]);
WriteLine(snnam[1]);
if (MyArrayList.Containse("Daoud"))
Write("The name Daoud exists");
Write("The name Daoud does not exist");
foreach(string names in MyArrayList)
Write("The values inside your MyArrayList are: " + names);
Transcribed Image Text:3) Begin { } 2) Begin { End; End; } ArrayList MyArrayList = new ArrayList[]; MyArrayList.Add("Ahmed"); MyArrayList.Adde("Daoud"); MyArrayList.Add("Anna"); MyArrayList.Add("llef"); MyArrayList.Add("Nannce"); else string[] sname = new string[5]; sname[0] = "Muhammed"; sname[1] "Ahmed Yacin"; sname[2] = "ilef"; //WriteLine(sname[0]); //WriteLine(snname[1]); WriteLine(snname[2]); WriteLine(snnam[1]); if (MyArrayList.Containse("Daoud")) Write("The name Daoud exists"); Write("The name Daoud does not exist"); foreach(string names in MyArrayList) Write("The values inside your MyArrayList are: " + names);
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer