본문 바로가기
Beakjoon&프로그래머스/Java

[백준/Java] 4101번 크냐?

by 현장 2022. 8. 27.

-Code

import java.util.Scanner;

public class _4101 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        while (true) {
            int a, b;
            a = sc.nextInt();
            b = sc.nextInt();
            if (a == 0 && b == 0) break;
            System.out.println(a > b ? "Yes":"No");
        }
    }
}