백준~문풀 후 최적화 추가~/단계별로 풀어보기

1330 두 수 비교하기

elesis 2021. 4. 14. 23:40
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();
        sc.close();
        
        if( a>b ) {
            System.out.print(">");
        } else if( a<b ) {
            System.out.print("<");
        } else {
            System.out.print("==");
        }
    }
}
저작자표시 (새창열림)