View Code of Problem 109

import java.util.Scanner;
public class Main{
	public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int i = 1 ;
		while(in.hasNext() && i <=a){
			int b = in.nextInt();
			int c = in.nextInt();
			System.out.println(b + c);
			i ++;
		}
	}
}

Double click to view unformatted code.


Back to problem 109