Question: Using break or continue, modify the following code so that the loop terminates after 6 iterations: For(int a = 0; a < 10; a++){ System.out.println(a);
Using break or continue, modify the following code so that the loop terminates after 6 iterations:
For(int a = 0; a < 10; a++){
System.out.println(a);
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
