Computer Science, asked by opop54, 2 months ago

State the output for the following code: (4)

……..//code

int n=20;

{

switch(ch)

{

case 1:++n; System.out.print(n+” and”);

case 2:++n; System.out.print(n+” and”);

case 3:n+=3; System.out.print(n+” and”);break;

default: System.out.println(“Wrong choice”);break;

}

System.out.println(“out of switch”);

}

i)if ch=1 ii) if ch=2 iii) if ch=3 iv)if ch=4​

Answers

Answered by manish56491
1

mujhe nhi pta sorry bro or sis

Jim

Similar questions