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
Complete the check for matrix A. Compare each cell with 1 when i == j and 0 otherwise, stop at the first mismatch at A[1][2], and return true only after both loops finish. Print the result as false.
OUTPUT
Samplefalse
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.