title: I need suggestion on what I am doing wrong
body: <p>I need help with little assignment</p>
  
  <pre><code>static int Max(int[] p)
      {
          int max = p[0];
          for (int i = 1; i &lt; p.GetLength(0); i++)
          {
              if (p[i] &gt; max) max = p[i];
          }
          return max;
      }
      static void Main(string[] args)
      {
          int[] p = new int[10];
          for (int i = 0; i &lt; p.GetLength(0); i++)
          {
              Console.Write("Vpiši {0}. celo število: ", i);
              p[i] = int.Parse(Console.ReadLine());
          }
          int max = Max();
          Console.WriteLine(max);
          Console.ReadKey(true);
      }
  </code></pre>
  
  <p>I don't know the reason but I have problam with writting out the max array for Max method. I think I am not calling the method corectly - can I please get help or the problem</p>