+ 1

Why the output of this matrix program is only 1 row?

This is the matrix program: https://code.sololearn.com/cVw00elct2ge/?ref=app

12th Dec 2017, 9:48 AM
Kevin Wijaya
Kevin Wijaya - avatar
2 Answers
+ 3
for(int x=0; x<A.length; x++) { for(int y=0; y<A[0].length; y++) { System.out.print(A[x][y]+" "); } System.out.println(); // ADD this }
12th Dec 2017, 9:52 AM
ChaoticDawg
ChaoticDawg - avatar
+ 3
Thanks for your answer

12th Dec 2017, 10:13 AM
Kevin Wijaya
Kevin Wijaya - avatar