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
1
mujhe nhi pta sorry bro or sis
Jim
Similar questions
Hindi,
1 month ago
Social Sciences,
1 month ago
English,
3 months ago
Hindi,
9 months ago
Hindi,
9 months ago