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. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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