none
4 matrics 3 rows and 5 column please help me

Answers

  • Open Visual Studio and then create a new C# Console Application project. Replace the Program class with the following code.

    class Program
    {
      static void Main()
      {
        const int iMatrices = 4;
        const int iRows = 3;
        const int iColumns = 5;
    
        int[,,] products = new int[iMatrices, iRows, iColumns];
        for (int iMatrix = 0; iMatrix < iMatrices; iMatrix++)
        {
          for (int iRow = 0; iRow < iRows; iRow++)
          {
            for (int iColumn = 0; iColumn < iColumns; iColumn++)
            {
              products[iMatrix, iRow, iColumn] = (iMatrix + 1) * (iRow + 1) * (iColumn + 1);
            }
          }
        }
    
        for (int iMatrix = 0; iMatrix < iMatrices; iMatrix++)
        {
          for (int iRow = 0; iRow < iRows; iRow++)
          {
            for (int iColumn = 0; iColumn < iColumns; iColumn++)
            {
              Console.Write("{0}, ", products[iMatrix, iRow, iColumn]);
            }
            Console.WriteLine();
          }
          Console.WriteLine();
        }
      }
    }
    Best wishes and good luck!
    ~Davin Mickelson
    Monday, May 2, 2016 8:38 PM
    Answerer