Why doesn't the output from the variables show on the Console using c#
<pre><code>/**
Write a program in C# language to perform the following operation:

b. Finding greatest of n numbers

**/
using System;
using System.Linq;


class Greatest
{
    public static void Main(String[] args)
    {   
        //get the number of elements
        Console.WriteLine("Enter the number of elements");
        int n;
        n=Convert.ToInt32(Console.ReadLine());
        int[] array1 = new int[n];         
        //accept the elements
        for(int i=0; i&lt;n; i++)
        {
            Console.WriteLine("Enter element no:",i+1);
            array1[i]=Convert.ToInt32(Console.ReadLine());
        }
        //Greatest
        int max=array1.Max();
        Console.WriteLine("The max is ", max);

        Console.Read();
    }
}
</code></pre>

<p>The program doesn't output the variable's value, I can't figure out why ??</p>

<p>The sample output is </p>

<pre><code> Enter the number of elements
3
Enter element no:
2
Enter element no:
3
Enter element no:
2
The max is 
</code></pre>

<p>Note no output from variables.</p>

<p>Thanks</p>
