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
Repair the initialization so the minimum and maximum are reset from the first value of each row, not kept at 0 outside the outer loop. Print the three correct pairs for the matrix.
OUTPUT
Sample-1 7 -9 -2 1 8
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.