[백준/Java] 10952 : A+B - 5

SEOP·2023년 5월 21일
0
post-custom-banner

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

        while(true) {
            String[] STR = br.readLine().split(" ");
            int a = Integer.parseInt(STR[0]);
            int b = Integer.parseInt(STR[1]);

            if (a == 0 && b ==0){
                bw.flush();
                bw.close();
                return;
            }
            bw.write(String.valueOf(a+b));
            bw.newLine();
        }
    }
}
profile
응애 나 애기 개발자
post-custom-banner

0개의 댓글