Q. What is the output of the Java code snippet?
Code:
int i=0;
for(i=1; i<=6;i++)
{
if(i%3==0)
continue;
System.out.print(i+",");
}
β
Correct Answer: (B)
1,2,4,5,