use switch statement for the following program snippet
if (a==10)
c=a+2;
if (a==20)
c=a+3;
if (a==60)
c=a+10;
Answers
Answered by
2
Answer:
switch(a)
{
case 10:
c = a + 2;
break;
case 20:
c = a + 3
break;
case 60:
c = a + 10;
break;
default;
break;
}
Explanation:
This is the right way to write this program for the switch
Answered by
1
Answer:
Explanation:
MALAYALI ANO
Similar questions
World Languages,
2 months ago
Computer Science,
2 months ago
Biology,
2 months ago
English,
4 months ago
Music,
10 months ago
Math,
10 months ago