I can't just add values to an array and then I want to print the values
<p>/*This is a simple code to add values to an array using c# and then just to print them. But I am having an error in order to do this. What possible error could be? */</p>

<pre><code>        int size = 0, k = 0;
        Console.WriteLine("Enter size of array: ");            
        size = Console.Read();
        string[] array = new string[size];  

        for (int i = 0; i &lt; size; i++)
        {
            Console.WriteLine("Enter at index: {0}", i);
            array[i] = Console.ReadLine();                
        }

        foreach (string s in array)
        {
            Console.WriteLine("Value at index: {0}", k++ + " = " + s);
        }
</code></pre>
