title: How to calculate the average of each row in multidimensional array
body: <p>What i want to do is get the average of each row of what the user inputs. I'm able to display the input, but not sure how to calculate an average of the three numbers in each row. What would be a solution? I'm new to C# so still learning.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>class Program
      {
          static void Main(string[] args)
          {
              int[,] number = new int[3, 5];
              for (int i = 0; i &lt; 3; i++)
              {
                  for (int x = 0; x &lt; 3; x++)
                  {
                      Console.WriteLine("Please enter number");
                      number[x, i] = int.Parse(Console.ReadLine());
                  }
              }
  
              for (int i = 0; i &lt; 3; i++)
              {
                  for (int x = 0; x &lt; 3; x++)
                  {
                      Console.Write(number[x, i] + " ");
                  }
                  Console.WriteLine(" ");
                  Console.ReadLine();
              }
          }
      } 
  </code></pre>