Convert the given code into switch......case (grouping case to be used) if(j==3||j==5)
n=6;
else if(j==4||j==8)
n=9; else if(j==2)
n=8; else
n=0;
Answers
Answered by
0
Answer:
switch(j)
{
case 3:
case 5:
n=6;
break;
case 4:
case 8:
n=9;
break;
case 2:
n=8;
break;
default:
n=0;
break;
}
Explanation:
Similar questions
Math,
4 months ago
Math,
9 months ago
Math,
9 months ago
Social Sciences,
1 year ago
English,
1 year ago