씨니 2022. 3. 16. 16:48
728x90

 

▶풀이방법

import java.util.*;

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