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 print the three row sums and the four column sums for the matrix. Reset each subtotal when you begin a new row or column.
OUTPUT
SampleRow sums: 8 4 5 Column sums: 10 5 2 0
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.