두 수 비교하기 (1330)

유지원·2021년 6월 16일
0

백준OJ

목록 보기
12/32
post-thumbnail

Java 11

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();

        in.close();

        int c = a-b;
        
        System.out.println( (c > 0) ? ">" : (c < 0) ? "<" : "==" );

    }
}
profile
👋 https://github.com/ujw0712

0개의 댓글