adplus-dvertising

Is it hot or cold CodeChef Solution

We Are Discuss About CODECHEF SOLUTION

Is it hot or cold CodeChef Solution

Is it hot or cold CodeChef Solution

Chef considers the climateĀ HOTĀ if the temperature isĀ aboveĀ 20, otherwise he considers itĀ COLD. You are given the temperatureĀ C, find whether the climate isĀ HOTĀ orĀ COLD.

Input Format

  • The first line of input will contain a single integerĀ T, denoting the number of test cases.
  • The first and only line of each test case contains a single integer, the temperatureĀ C.

Output Format

For each test case, print on a new line whether the climate isĀ HOTĀ orĀ COLD.

You may print each character of the string in either uppercase or lowercase (for example, the stringsĀ hOt,Ā hot,Ā Hot, andĀ HOTĀ will all be treated as identical).

Constraints

  • 1 \leq T \leq 50
  • 0 \leq C \leq 40

Sample 1:

Input

Output

2
21
16
HOT
COLD

Explanation:

Test caseĀ 1:Ā The temperature isĀ 21, which is more thanĀ 20. So, Chef considers the climateĀ HOT.

Test caseĀ 2:Ā The temperature isĀ 16, which is not more thanĀ 20. So, Chef considers the climateĀ COLD.

SOLUTION

Is it hot or cold CodeChef Solution

SOLUTION

Is it hot or cold CodeChef Solution

SOLUTION

Yhaa You have done it but next? if YOU Want to Get Others Please Visit HereĀ ScishowEngineerĀ Ā  ThenĀ Follow US HEREĀ andĀ Join Telegram.

If You Want To Learn Something New Then Visit OurĀ Official Channel YOUTUBE

Related Posts

Leave a Reply

Your email address will not be published.