2d array programs

C++ program to enter 3 x 3 matrix

Enter 3 x 3 matrix

C++ program to enter 3 x 3 matrix.Here “a[3][3]” is the name of array with 3 rows and 3 coloumns .In for loop i is the number of rows and j is the number of coloumns.

OUTPUT

 enter 3 x 3 matrix


Using concept of class

OUTPUT

Enter 3 x 3 matrix


What is matrix

  • It is a rectangular array arranged in rows and coloumns.
  • Suppose a matrix “A” is denoted by m x n order.Where m=rows and n=coloumns.
  • Individual item in matrix “A” will be denoted by “aij” where i=m and j=n.

  • Comment below if you are facing any problem.


    Also read

    C program of 2D array to enter matrice
    C program to multiply two matrix
    C++ program of defining array

    Summary
    C++ simple program to enter 3 x 3 matrix
    Article Name
    C++ simple program to enter 3 x 3 matrix
    Description
    This program illustrate the concept to enter 3 x 3 matrix in c++.Matrix is a rectangular array arranged in rows and coloumns.
    Author
    Publisher Name
    Scanfcode
    Publisher Logo