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
Repair the Java program so the counter does not restart on each row. It must print the exact target triangle and leave the counter equal to 11, then print that final counter on its own line.
OUTPUT
Sample1 2 3 4 5 6 7 8 9 10 11
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.