+ 1
Why the output of this matrix program is only 1 row?
This is the matrix program: https://code.sololearn.com/cVw00elct2ge/?ref=app
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
}
+ 3
Thanks for your answerâŠ