← Back to If Statements
Question 381
Water State
Water State
Read adoubletemperature in degrees Celsius and print the state of water: - if the temperature is 0 or below, printIce- if it is above 0 but below 100, printWater- if it is 100 or above, printSteamFor example, given the input25, the program prints the output shown in Expected Output.
Expected Output:
Water= newline. The output ends with a newline — print one after the last line.
Hints4 available
Sign in to use hintsTopics:
If Statements
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.