less than 1 minute read

Content


Problem link : https://www.acmicpc.net/problem/1330

Problem

Given two integers A and B, write a program to compare A and B.

Input

The first line is given by A and B. A and B are separated by a space.

Output

Output one of the following three in the first line.

  • If A is greater than B, output ‘>.
  • If A is less than B, output ‘<’.
  • If A and B are the same, output ‘==’.

Limits

  • 10,000 ≤ A, B ≤ 10,000

Answer


#include<iostream>
using namespace std;

int main() {
	int a, b;
	cin >> a >> b;
	if (a > b) {
		cout << '>';
	}
	else if (a < b) {
		cout << '<';
	}
	else if (a == b) {
		cout << "==";
	}
	return 0;
}

The error occurs when I using in ==. It was really basic concept, so.. need to caring about details.