Temperature Classifier
Difficulty: Easy
Phase: 1 · Conditional Thinking
XP Reward: 10 XP
Topics: Conditional Thinking, Easy
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Take temperature T in Celsius. If T < 15 print 'Cold', if 15 <= T <= 30 print 'Warm', else print 'Hot'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 22
Output: Warm
Explanation: Sample execution for input 22