두 수 비교, <, >, == 출력

package p1330;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static Main Main(){
        return new Main();
    }

    public static String compareWith(int a, int b){
        String result = null;
        if (a > b){result = ">";}
        if (a < b){result = "<";}
        if (a == b){result = "==";}
        return result;
    }
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        int a = Integer.parseInt(st.nextToken());
        int b = Integer.parseInt(st.nextToken());
        System.out.println(compareWith(a, b));
    }
}

'AREA(지속적인 일상) > 02_백준' 카테고리의 다른 글

[백준] - 사분면 고르기 - 14681  (0) 2021.08.24
[백준] - 2753 - 윤년  (0) 2021.08.24
[백준] 1009번 - 분산처리  (0) 2021.08.24
[백준] 2588 곱셈  (0) 2021.08.23
[백준 1002] 터렛  (0) 2020.02.24