โ 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: Water
Expected Output:
Water
Topics:
If Statements
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.