Opening the reading…
Opening the reading…
PROGRAMMING FUNDAMENTALS › JAVA FUNDAMENTALS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Complete the Java running example so it starts count at 1, tests count <= 4, increments count after each line, and prints 1, 2, 3, and 4 on separate lines. After printing 4, the update makes count equal to 5, and the final failed check ends the loop.
OUTPUT
Sample1 2 3 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.