package Baekjoon;
import java.util.Scanner;
public class A10952 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while ( true) {
int A = scan.nextInt();
int B = scan.nextInt();
System.out.println();
if ( A==0 && B==0) {
break;
}System.out.print(A+B);
}
scan.close();
}
}
여기서 내가 잘했다고 생각하는 거 ,,,
코드 중간에 System.out.println(); 넣어서 한 줄 띠고 A+B값 출력한다는 거 !!
'Coding Test' 카테고리의 다른 글
#2562 최댓값 구하기 JAVA (0) | 2021.03.30 |
---|---|
#1152 단어의 개수 JAVA (0) | 2021.03.30 |
#10818 최대,최소 (0) | 2021.03.11 |
#2438 별찍기 (0) | 2021.01.28 |
#11021, #10871 [JAVA] (0) | 2021.01.27 |