Computer Science, asked by jagadeeshmahima, 9 months ago


(a)
Write the equivalent switch().... case statement for the following decision making situation
Write the equivalent
If(x 11 '3') a=1;
if( -5)
a-2;
if(x=='7') a-3
else
a-10;​

Attachments:

Answers

Answered by Nidhi2503
2

switch (x)

{

case 1 : a = 1 ;

case 2:

case 3 : break;

case 4:

case 5: a = 2;

case 6:.

case 7: a = 3;

default : a = 10:

}

hope so it may help you

please mark me as the Brainliest answer

Similar questions