BackJoon Algorithm 5717

업데이트:
최대 1 분 소요

BackJoon Algorithm - Java

alt

문제

alt

    import java.util.Scanner;

public class Back_5717 {
    public static void main(String[] args) {

        // 입력
        Scanner sc = new Scanner(System.in);

        while(true){
            int boy=sc.nextInt();
            int girl= sc.nextInt();
            if(boy==0 && girl==0){
                break;
            }
            int sum=boy+girl;
            System.out.println(sum);
        }
    }
}

댓글남기기