GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Thursday 28 July 2022

[Solution] Is it hot or cold CodeChef Solution



Problem

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.

Solution Click Below:-  👉CLICK HERE👈
👇👇👇👇👇

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 hOthotHot,

Is it hot or cold CodeChef Solution

Maximise the Tastiness CodeChef Solution

N Buttons 1 Bulb CodeChef Solution

Valid Minimum CodeChef Solution

High Frequency CodeChef Solution

Split The String CodeChef Solution

Monks CodeChef Solution

Good Indices CodeChef Solution


 and HOT will all be treated as identical).

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.

No comments:

Post a Comment