Question: Fix the code. The following while loop should print all integers between 0 and 20, inclusive. int i = 0; while ( i
Fix the code. The following while loop should print all integers between 0 and 20, inclusive.
int i = 0;
while ( i <= 20 ) {
System.out.printf( "%d ", i );
i--;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
