csharp read input from console as array

Code Example - csharp read input from console as array

                
                        string []answer = new string[10];
for(int i = 0;i<answer.length;i++)
{
        answer[i]= Console.ReadLine();
}