(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:
![](https://hi-static.z-dn.net/files/d71/b0e78319c8f4419f7a6dcf7aacd4a395.jpg)
Answers
Answered by
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