Computer Science, asked by shini98, 5 months ago

using ternary operator: switch(k)

{

case 2 : w = 22;

break; default: w = 44;​

Answers

Answered by boudhedarshinis
0

Answer:

switch (num) {

case 1 .. 5:

System.out.println("testing case 1 to 5");

break;

case 6 .. 10:

System.out.println("testing case 6 to 10");

break;

Explanation:

mark as brilliant

Similar questions