Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › MATRIX BASICS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Scan the 4 x 5 matrix once with nested loops. Replace the marked condition so the program prints every boundary value exactly once in row-wise order, with no interior values.
OUTPUT
Sample1 2 3 4 5 6 10 11 15 16 17 18 19 20
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.