title: Filling in a matrix(2D array) using functions from a class
body: <p>I've learned C++ and am currently taking C#. Just to clarify, I am providing all the instructions but if I can get help with parts (b) and (c) I think I can do the rest.</p>
  
  <p>This is my assignment:
  Matrix is a 2 dimensional array of row size r and column size c. There are specific rules of adding or subtracting matrices A and B (of same row size m and column size n). The product of matrix A of dimension m by n (m is the row size or row dimension, n is the column dimension) and another matrix B of dimension p by q is meaningful only if p = n and in this case AB is a matrix of dimension m by q.
  (a) Define class Matrix with at least private variables depending on row size, column size etc.
  (b) Provide constructor when row size and column size are specified. You will set all the arguments to 0.0. 
  (c) Provide method to set the entries of a matrix
  (d) Provide Add method of matrices
  (e) Provide Subtract method.
  (f) Provide scalar multiplication which will multiply all the elements of matrix A by the value x.
  (g) Provide multiplication method mul so that A.mul(B) is equal to AB if A’s column dimension c is equal to B’s row dimension. Generate error message if the product AB is meaningless.</p>
  
  <pre><code>{
   {
          private int r=10;//row size
          private int c=10;//column size
  
          int[,] array=new int [10,10];
  
          public Matrix()
          {
              for (int i = 0; i &lt; this.r; i++)
              {
                  for (int j = 0; j &lt; this.c; j++)
                  {
  
                  }
              }
          }
          public Matrix(int rowSize, int columnSize)
          {
              this.r = rowSize;
              this.c = columnSize;
          }
          public void SetMatrix()
          {
              for (int i=0; i&lt;this.r; i++)
              {
                  for(int j=0; j&lt;this.c; j++)
                  {
  
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Without a finite size, I'm not sure how to proceed with creating the array (the 10,10 was just so the compiler would stop complaining). Secondly, when that's established, I'm not sure on how to fill in the array (most likely from the console). Hopefully my question doesn't sound too much like I'm asking for someone to do my homework for me. XD</p>