← Back to If Statements
Question 228
Ice Liquid Or Steam
Ice Liquid Or Steam
Read a temperature in degrees Celsius and print the state of water at that temperature: 0 or below prints Ice, 100 or above prints Steam, and anything in between prints Liquid. Input: one line, the temperature as a decimal number, no prompt. Output: one word. Write the whole if / elif / else chain.
Expected Output:
Ice= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
If Statements
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.