Question: Convert the following switch case code into an if-else code 1 switch ( colour ) N { case 0 : 4 printf(red ); 5 case
Convert the following switch case code into an if-else code

1 switch ( colour ) N { case 0 : 4 printf("red "); 5 case 2: 6 case 4 : 7 printf("green "); 8 break; 9 case 1 : 10 case 3: 11 case 5 : 12 printf("blue "); 13 break; 14 default : 15 printf("yellow "); 16 break; 17 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
