Write a program that reads an integer number that represents a temperature given in degree Celsius, and that tells if the weather is hot, if it’s cold, or if it’s ok. Suppose that it’s hot if the temperature is higher than 30 degrees, that it’s cold if the temperature is lower than 10 degrees, and that it’s ok otherwise. Moreover, warn if with the given temperature water would boil, or if water would freeze. Assume that water boils at 100 or more degrees, and that water freezes at 0 or less degrees.
Input consists of an integer number.
Print a line telling if it’s hot, if it’s cold, or if it’s ok. Additionally, print another line if water would boild or if water would freeze.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T10:12:31.910Z
© Jutge.org, 2006–2026.
https://jutge.org