eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

Relational Operators

Relational Operators

The relational operators in C programming language are shown in the table below. Of course the last two are also known as equality operators. These operators compare the value of the two operands it is working on (The value on its left and the value on its right) and returns true or false (one or zero). For example value of \textbf{2} > \textbf{3} is interpreted as "\textbf{false}" (As \textbf{2} is actually less than \textbf{3}), value of \textbf{3} != \textbf{4} is interpreted as true and value of \textbf{3} >= \textbf{3} is also interpreted as true. You have to find out this interpretation using a program. \InputFile The input file contains around \textbf{12000} line of input. Each line contains two integers a and b separated by an operator ">", ">=", "<", "<=", "==" or "!=". Input is terminated by a line which contains an "\textbf{E}" instead of the operators. Note that there is also a space between any operator and operand. You can assume (\textbf{-10000} ≤ \textbf{a}, \textbf{b} ≤ \textbf{10000}). \OutputFile For each line of input produce one line of output. This line contains the serial of output followed by a string "\textbf{true}" or "\textbf{false}" (without the quotes) which denotes how the expression is interpreted in C language. Look at the output for sample input for details.
Ліміт часу 1 секунда
Ліміт використання пам'яті 256 MiB
Вхідні дані #1
3 != 3
4 < 4
4 <= 5
3 E 3
Вихідні дані #1
Case 1: false
Case 2: false
Case 3: true