Opening the reading…
Opening the reading…
DSA FUNDAMENTALS › CONTROL FLOW
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Complete the expression that calculates each value in the 4 by 4 output for n = 4. Use the row and column directly so the program prints each row as 1 2 3 4, 2 3 4 1, 3 4 1 2, and 4 1 2 3.
OUTPUT
Sample1 2 3 4 2 3 4 1 3 4 1 2 4 1 2 3
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.