본문 바로가기
Coding Test/백준

[백준 1330번 - java] 두 수 비교하기

by olli2 2021. 11. 3.

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

 

내 답안

import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) throws IOException {
		
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		
		if (a>b) {
			System.out.println(">");
		}
		else if (a<b) {
			System.out.println("<");
		}
		else System.out.println("==");
	}
}