Question: Exercise 1 Define and initialize the following variable: temperature = 7 5 . Use the if , elseif, else structure to check whether the temperature
Exercise
Define and initialize the following variable: temperature Use the if elseif, else structure
to check whether the temperature is: Below zero, Cold, Mild, Hot. Use more than one elseif
and one else. Modify the value of the temperature variable to check the validity of your code.
Place your code into a m file
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
