title: calculate the Euclidean distance between an array in c# with function
body: <p>I want to calculate a  euclidean   distance  between points that the user enter,so as you can see here :</p>
  
  <pre><code>static void Main(string[] args)
  {
      int numtest = int.Parse(Console.ReadLine());
      int[,] points=new int[10,2];
      for (int i = 0; i &lt; numtest; i++)
      {
          Console.WriteLine("point " +(i+1).ToString()+" x: ");
          points[i, 0] = int.Parse(Console.ReadLine());
          Console.WriteLine("point " + (i + 1).ToString() + " y: ");
          points[i, 1] = int.Parse(Console.ReadLine());
      }
  }
  
  public float[] calculate(int[,] points)
  {
      for (int i = 0; i &lt;points.Length ; i++)
      {
  
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/jrn6t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jrn6t.png" alt="enter image description here"></a></p>
  
  <p>is there any function in c# that can do this ?</p>
  
  <p>I need to have each distance value between all points in my array </p>