Computer Science, asked by tabreezhussain0344, 3 months ago

convert the following if\ else statement into switch statement. if ( temp== 100)​

Answers

Answered by kavyapatel93
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 akc181
0

Answer:

switch( temp)

{

case 100:

// statements

.

.

.

default:

// statements

}

Similar questions