매일코테

백준 3단계 no.8

공주맛밤 2022. 7. 20. 12:00

import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        for(int i=0; i<n; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            
            System.out.println("Case #"+(i+1)+": "+a+" + "+b+" = "+(a+b));
        }
    }
}
728x90
반응형

'매일코테' 카테고리의 다른 글

백준 3단계 no.10  (0) 2022.07.20
백분 3단계 no.9  (0) 2022.07.20
백준 3단계 no.7  (0) 2022.07.20
백준 3단계 no.6  (0) 2022.07.20
백준 3단계 no.5  (0) 2022.07.20