0
using a while loop initialise the contents of a 10 element string array to c#. using another while loop print the content of the array to the screen.
please help me to find out.
2 Answers
+ 1
string[] strArr= new string[10];
int i = 0;
while(i < 10)
strArr[i++] = Console.ReadLine();
i = 0;
while(i < 10)
Console.WriteLine(strArr[i++]);
Hope that helps đđ
0
Do you mean something like this?
http://www.sololearn.com/app/csharp/playground/cVFoSh805Cs6/