Computer Science, asked by sarkarsid, 9 months ago

What will be the output of the program?
for(int i = 0; i < 3; i++)
switch(0)
case 0: break;
case 1: System.out.print("one"):
case 2: System.out.print("two ");
case 3: System.out.print("three ");
System.out.println("done");
Select one:
a. done
b. one two three done
c. one two doneone two done
d. one two three two three dpne​

Answers

Answered by sparshhpanjwani2
4

Answer:

Error

Explanation:

In if loop cannot use increment or decrement operator

Answered by Mahalakshmiakalya
6

Answer:

opt d: one two three two three done

Explanation:

none

Similar questions