Question: Convert the following if-else statement into ternary operator: if (temperature <18) result=cold; else result=hot; Exercise 2: Convert the following if-else statement to switch case:
Convert the following if-else statement into ternary operator: if (temperature
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
