백준 2739번(반복문)


(설명)

import java.util.Scanner;

public class Main {
    public static void main(String args()) {

        Scanner in = new Scanner(System.in);

        int c = in.nextInt();
        int arr() = new int(c);

        for (int i = 0; i < c; i++) {
            int a = in.nextInt();
            int b = in.nextInt();
            arr(i) = a + b;
        }

        for (int k : arr) {
            System.out.println(k);
        }
    }

}