Use the do/while loop to print i as long as i is less than 6.
do/while
i
Click here to try again.
int i = 1; w3exercise_input_no_0 { System.out.println(i); i++; } w3exercise_input_no_1 (i < 6);
w3exercise_input_no_0
w3exercise_input_no_1
Completed 0 of 59 Exercises:
This will reset the score of ALL 59 exercises.
Are you sure you want to continue?
Share your score on facebook: