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.

8th Jul 2016, 5:01 AM
Adrian Lupu
Adrian Lupu - avatar
2 Réponses
+ 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 ūüėÄūüėĀ
8th Jul 2016, 7:36 PM
Erwin Mesias
Erwin Mesias - avatar
8th Jul 2016, 6:55 AM
Andreas BeEm Kvist
Andreas BeEm Kvist - avatar