View Code of Problem 1

package zgs.exam.day11;

import java.util.Scanner;

public class Pro109 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        for (int i = 0; i < t; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            System.out.println(a+b);
        }
    }
}

Double click to view unformatted code.


Back to problem 1