Chef and Operators

Practice this coding question on Coding Gurukul.

Problem statement

A kitchen dashboard compares the stock counts reported by two storage rooms. Rather than displaying a long explanation, it uses a single comparison symbol to show whether the first room has less, more or the same amount. A batch of room comparisons arrives at the end of each shift, and the dashboard must preserve their reporting order. Your task For each pair of integers a and b, print < when a is smaller than b, > when a is larger than b, and = when the values are equal. Print exactly one symbol for each test case. Important details Equality must be handled explicitly; it is neither less nor greater. Compare numeric values, not their string lengths. The first value always belongs on the left side of the implied comparison. Worked example For stock counts 12 and 7, the first count is larger, so print >. A pair of 4 and 4 produces =.

Input format

First line: T. Next T lines: a b.

Output format

Print one of <, > or = on each line.

Constraints

1 <= T <= 1000; 0 <= a,b <= 1000000000.

Sample input

3
12 7
4 4
2 10

Sample output

>
=
<

Sign in to run or submit a solution in C++, Java or Python.