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
Write a Java program that scans the given 3 x 4 matrix column by column. Store each column's minimum and maximum in the matching result position, then print all minima on one line and all maxima on the next line.
OUTPUT
Sample0 -2 -5 -4 6 9 7 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.