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
Calculate and store the three row sums and four column sums for the matrix. Print them in order, then verify that the row sums and the column sums each combine to 17.
OUTPUT
SampleRow sums: 8 4 5 Column sums: 10 5 2 0 Combined row sums: 17 Combined column sums: 17
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.