백준 11022번| Java - A+B-8

bj2

풀이

import java.util.*;
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();
			int c = a+b;
			System.out.println("Case #"+ i + ": "+ a + " + "+b + " = " + c);
		}
	}
}

comments powered by Disqus