Write the output
switch (num) {
case 5. num++ ;
system.out. println("six");. case6: system.out.println(num);
case0:System.out.println ( zero);. break:
Case 1: ++ num ; num* = 2;
System .out.print (case not
matching");
}
\*end of switch case construct*/
/*Assume num as - 1*/
Answers
Answered by
2
Answer:
Explanation:
int fruit = 3; switch (fruit + 1) { case 1: System.out.println("Banana"); break ; case 2: ... switch(number) { case 0: System.out.println("Value of number is zero"); case 1: ... selected Five"); break; case 6: System.out.println("You selected Six"); break; ... i < 1000; i++) { if (i % 17 == 0) { count++; sum += i; } } System.out.println("Sum ...
Similar questions