CODE DRILL 1 · RUN ONLY
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Store the given 3 x 4 matrix and print its zig-zag traversal: 1 2 3 4 8 7 6 5 9 10 11 12. Select the inner loop direction from the row index without modifying the matrix.
OUTPUT
Sample1 2 3 4 8 7 6 5 9 10 11 12
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.