天天看點

HDOJ 1000HDOJ 1000

HDOJ 1000

Problem Description

Calculate A + B.
           

Input

Each line will contain two integers A and B. Process to end of file.
           

Output

For each case, output A + B in one line.
           

code

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        int a,b;
        Scanner in = new Scanner(System.in);
        while(in.hasNext()) {
            a = in.nextInt();
            b = in.nextInt();
            System.out.println(a+b);
        }
    }

}