DSA SheetLesson · no judge

CODE DRILL 2 · RUN ONLY

Write it, run it, read the output

This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.

TASK

Store the matrix [[3, 8, 1], [6, 2, 9]]. Print its two rows on separate lines, then print its three columns on separate lines.

Java
Loading editor…

OUTPUT

Sample
3 8 1
6 2 9
3 6
8 2
1 9

What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.