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
Use the nested loops and n = 4 to print four rows. Each row must print the outer loop variable i four times, followed by one newline after the row.
OUTPUT
Sample1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.