Please help me rewrite the following code segment without using continue statement in Java

for(int k=0; k<n;k++){

loop2:

for (int i = 1; i <=n; i++) {

if (i*k % 2 == 0)

continue loop1;

System.out.println(i*k+" is not divisible by 2");

if (i*k % 5 == 0)

continue loop2;

System.out.println(i*k+" is not divisible by 5");

if (i*k % 11 == 0) {

System.out.println(i*k+" is divisible by 11");

break loop1;

}

}

}

#### Top Answer

Output: 1 is not divisible by 2 1 is not divisible by 5 3 is not divisible by 2 3 is... View the full answer