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
0
Output :
1) Odd
2) Even no.
Similar questions
Math,
1 month ago
Math,
1 month ago
Business Studies,
3 months ago
Hindi,
9 months ago
Math,
9 months ago