Computer Science, asked by dhruvdabeast1515, 9 months ago

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 akshayamca14
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