title: Creating a method that returns an array
body: <p>I'm to create a helper method that returns a new array whose elements are the square of an original array. But when I run the code, the console returns "System.Double[]". How can I fix this?</p>
  
  <p>Here's the method code:</p>
  
  <pre><code>static double[] powerOfTwo(int[] arr)
          {
              double[] elevatedPower = new double[10];
              elevatedPower[0] = Math.Pow(arr[0], 2);
              elevatedPower[1] = Math.Pow(arr[1], 2);
              elevatedPower[2] = Math.Pow(arr[2], 2);
              elevatedPower[3] = Math.Pow(arr[3], 2);
              elevatedPower[4] = Math.Pow(arr[4], 2);
              elevatedPower[5] = Math.Pow(arr[5], 2);
              elevatedPower[6] = Math.Pow(arr[6], 2);
              elevatedPower[7] = Math.Pow(arr[7], 2);
              elevatedPower[8] = Math.Pow(arr[8], 2);
              elevatedPower[9] = Math.Pow(arr[9], 2);
  
              return elevatedPower;
          }
  </code></pre>
  
  <p>And the code to print it in the console: </p>
  
  <pre><code>static void Main(string[] args)
          {
              double[] powerValues = powerOfTwo(new int[] {1,2,3,4,5,6,7,8,9,10});
              Console.Write(powerValues);
              Console.ReadLine();
          }
  </code></pre>