
A+B 시리즈의 연속.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
for (int i = 1; i<=T; i++) {
int A = sc.nextInt();
int B = sc.nextInt();
System.out.println("Case #" + i + ": " + (A+B));
}
}
}'백준 문제풀이 > 반복문' 카테고리의 다른 글
| 2438. 별 찍기 - 1 (1) | 2022.09.12 |
|---|---|
| 11022. A+B - 8 (0) | 2022.09.12 |
| 15552. 빠른 A+B (1) | 2022.09.12 |
| 25304. 영수증 (0) | 2022.09.11 |
| 8393. 합 (0) | 2022.09.11 |