+ 3

How l print a matrix (2D array) in it's format ?

For example: matrix[2][2]={1 , 2 , 3 , 4} , I want to print it like : 1 2 3 4

16th Apr 2018, 5:22 PM
Mona Mohamed
Mona Mohamed - avatar
5 Respostas
+ 2
https://code.sololearn.com/cxTAmsrtz3Ka/?ref=app Its an eample to illustrate 2d array
16th Apr 2018, 8:39 PM
ARIF ANSARI
ARIF ANSARI - avatar
16th Apr 2018, 5:29 PM
XiLef
+ 1
I think u can print the matrix in matlab!!
17th Apr 2018, 6:57 AM
Abdulaziz alanazi
+ 1
for(int i=0;i<2;++i){ for(int j=0;j<2;++j) count<<matrix[i][j]<<" "; cout<<endl; }
17th Apr 2018, 3:48 PM
Nandigama Srinivas
Nandigama Srinivas - avatar