-->
当前位置:首页 > 题库

编程题:Different temperatures

Luz4年前 (2022-10-05)题库330


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









答案:若无答案欢迎评论