Compare Two Numbers
Time limit1sMemory limit512 MB
Read two integers and print whether the first is greater than, less than, or equal to the second.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Given two integers A and B, write a program that compares them and prints the correct symbol.
Input
The first line contains A and B separated by one space.
Output
Print exactly one of the following on the first line.
- Print '
>' if A is greater than B. - Print '
<' if A is less than B. - Print '
==' if A and B are equal.
Constraints
- -10,000 <= A, B <= 10,000