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
Store the running 5 x 5 matrix and use one row index to collect both diagonals. Print 1 7 13 19 25 on the first line and 5 9 13 17 21 on the second line.
OUTPUT
Sample1 7 13 19 25 5 9 13 17 21
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.