编程题:Different temperatures
Your program reads today temprature, then judge the input temperature value and output the corresponding information.
If temprature is greater than 30 ,output:
It's a hot day
Drink plenty of water
Otherwise, if it's between 20 and 30,output:
It's a nice day
Otherwise output:
It's cold
### Input Format:
A whole number.
### Output Format:
one or two sentence according to temparture value。
### Sample Input:
A set of inputs is given here. For example:
in
14
### Sample Output:
The corresponding output is given here. For example:
out
It's cold
### Sample Input:
A set of inputs is given here. For example:
in
23
### Sample Output:
The corresponding output is given here. For example:
out
It's a nice day
### Sample Input:
A set of inputs is given here. For example:
in
33
### Sample Output:
The corresponding output is given here. For example:
out
It's a hot day
Drink plenty of water
答案:若无答案欢迎评论