Temperature Freeze Check
Programming Basics · C#
TASK
Problem
An integer value is given. Read the required input and print whether the condition ‘Temperature Freeze’ holds. Use only the supplied input values and preserve their original order unless the operation explicitly requires reordering. Print the answer exactly in the required format; do not print input prompts or explanatory labels.
EXAMPLE
Example
-5
FREEZE
LIMITS
Constraints
- Every token parsed with `int.Parse` is a valid 32-bit signed integer; test data avoid unintended overflow in the task's intended calculation. - Input is syntactically valid for the task except where invalid input is deliberately being tested (for example a `TryParse`/validation exercise). - Print only the required answer; do not add prompts, labels, debug text, or extra spaces/lines.
LEARN
Theory for this problem
+
A boolean condition should mirror the mathematical statement directly. Combine comparisons with `&&`, `||`, and `!` only after deciding exactly when the answer must be true. For **Temperature Freeze Check**, the concrete requirement is: Read the required input and print whether the condition ‘Temperature Freeze’ holds. Keep input parsing, the core operation, and output formatting separate so each part can be checked independently. Before coding, trace the first example by hand and identify the smallest valid or boundary-shaped input; this exposes off-by-one, sign, empty/single-element, and formatting mistakes before they reach the implementation.
NEED HELP?
Hints
+
['A boolean condition should mirror the mathematical statement directly. Combine comparisons with `&&`, `||`, and `!` only after deciding exactly when the answer must be true.', 'Write the exact input-to-output rule for this task before coding: Read the required input and print whether the condition ‘Temperature Freeze’ holds', 'Trace the public example by hand, then test the smallest input and the edge case most likely to change an index, branch, tie, or empty result.']
ANSWER
Solution
+
using System;
class Program
{
static void Main()
{
int t=int.Parse(Console.ReadLine());
Console.WriteLine(t<=0?"FREEZE":"LIQUID");
}
}