0

Use the do while loop to print i as long as i is less than 6.

13th Nov 2022, 6:14 AM
Sarraga John Clyde
2 Answers
+ 1
i = 9; while(i>=6) { // your code i -= 1; }
13th Nov 2022, 6:29 AM
JaScript
JaScript - avatar
+ 1
int i = 1; do{ System.out.println(i); i++; } while (i<6);
16th Nov 2022, 10:59 AM
Sarraga John Clyde