convert the following if\ else statement into switch statement. if ( temp== 100)
Answers
Answered by
1
Answer:
converting if/else if statement into switch checks value of temp case by case, and executes action relevant if case value of temp is matched. if (temp == 100) x = 0; else if (population > 1000) x = 1; else if (rate < .
Explanation:
hope it help u
Answered by
0
Answer:
switch( temp)
{
case 100:
// statements
.
.
.
default:
// statements
}
Similar questions