Computer Science, asked by mariyasibi10, 3 months ago

4. Predict the output if 1) Ch=l 2)Ch=4
switch(Ch)
{
case 1: System.out.println("odd");
case 3: System.out.println("again odd no.");
case 4:System.out.println("Even no.");
break;
default: System.out.println("optional");
3​

Answers

Answered by indiantechsmith
0

Output :

1) Odd

2) Even no.

Similar questions