【西交ACM】100 A+B problem

【西交ACM】100   A+B problem

http://202.117.21.117/xjoj/problem_html/100.html

最简单的程序。

Description

give you two number A and B,you should output the result of A+B.

Input

two integer A,B on each line.

Output

output the A+B on each line.

Sample Input

1 2
3 4

Sample Output

3
7
 1 //author:pz
 2 
 3 import java.util.Scanner;
 4 
 5 public class Main{
 6     public static void main(String[] args) {
 7         Scanner sc =new Scanner(System.in);
 8         while(sc.hasNext()){
 9             int a = sc.nextInt();
10             int b = sc.nextInt();
11             System.out.println(a+b);
12 
13         }            
14     }
15     
16 }

 

posted on 2013-04-18 09:16  P,Z  阅读(195)  评论(0编辑  收藏  举报