Question: 2 . Write a switch statement that will examine the value of an integer variable called flag and print one of the following messages, depending
Write a switch statement that will examine the value of an integer variable called "flag" and print one of the following messages, depending on the value assigned to "flag".
a HOT, if flag has value
b LUKE WARM, if flag has value
c COLD, if flag has value
d OUT OF RANGE, if flag has any other value
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
