Write the following switch statement by using nested if statement -
switch (choice)
{
case 0 :
case 1 :
x = 11;
y = 22;
break;
case 2 :
x = 33;
y = 44;
break;
default:
y = 55;
break;
PLEASE DON'T POST IRRELEVANT ANSWERS....
Share
Write the following switch statement by using nested if statement -
switch (choice)
{
case 0 :
case 1 :
x = 11;
y = 22;
break;
case 2 :
x = 33;
y = 44;
break;
default:
y = 55;
break;
PLEASE DON'T POST IRRELEVANT ANSWERS....
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Write the following switch statement by using nested if statement -
switch (choice)
{
case 0 :
case 1 :
x = 11;
y = 22;
break;
case 2 :
x = 33;
y = 44;
break;
default:
y = 55;
break;
PLEASE DON'T POST IRRELEVANT ANSWERS....
Explanation:
Write the following switch statement by using nested if statement -
switch (choice)
{
case 0 :
case 1 :
x = 11;
y = 22;
break;
case 2 :
x = 33;
y = 44;
break;
default:
y = 55;
break;
PLEASE DON'T POST IRRELEVANT ANSWERS....