본문 바로가기

Algorithm/Baekjoon

[백준] #1330: 두 수 비교하기

import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		if(A>B)
			System.out.println(">");
		else if(A==B)
			System.out.println("==");
		else if(A<B)
			System.out.println("<");
	}
}

'Algorithm > Baekjoon' 카테고리의 다른 글

[백준] #2753: 윤년  (0) 2022.02.21
[백준] #9498: 시험 성적  (0) 2022.02.21
[백준] #2588: 곱셈  (0) 2022.02.20
[백준] #10430: 나머지  (0) 2022.02.20
[백준] #18108: 1998년생인 내가 태국에서는 2541년생?!  (0) 2022.02.20