Computer Science, asked by mimi28, 7 months ago

Please solve this asap.
Give the output of the following snippet:

int i;
for(i=1;i<=10;i++)
{
if(i==3 || i==4)
continue;
if(i==5 && i==6)
break;
System.out.print(i+" ");
}

will mark as brainliest. answer fast.​

Answers

Answered by Oreki
2

Output of the snippet:

1 2 5 6 7 8 9 10

Answered by msavinash1139
1

Answer:

1 2 5 6 7 8 9 10

Explanation:

3 and 4 make the code to continue to start of loop. Rest numbers are printed. A variable i can't be 5 AND 6 at the same time. So that case never executes.

Similar questions