Complete the code to initialize the counter variable.
int count = [1];The counter variable should start at 0 to count from the beginning.
Complete the code to write the while loop condition to run 5 times.
while (count [1] 5) { System.out.println(count); count++; }
The loop should run while count is less than 5 to execute 5 times (0 to 4).
Fix the error in the loop increment statement.
while (count < 5) { System.out.println(count); count[1]; }
The increment operator '++' increases count by 1 each loop.
Fill both blanks to create a loop that counts down from 5 to 1.
int count = [1]; while (count [2] 0) { System.out.println(count); count--; }
Start count at 5 and loop while count is greater than 0 to count down.
Fill all three blanks to create a loop that prints even numbers from 2 to 10.
int count = [1]; while (count [2] 10) { System.out.println(count); count [3] 2; }
Start at 2, loop while count is less or equal to 10, and add 2 each time to print even numbers.
