码家

Web Platform, Cloud and Mobile Application Development

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

import java.util.Scanner;

public class Main

{

  public static void main(String[] args)

  {

    Scanner in = new Scanner(System.in);
    while (in.hasNextInt())

     {
        int a = in.nextInt();
        int b = in.nextInt();
        System.out.println(a + b);
    }
  }
}

posted on 2011-05-22 14:29  海山  阅读(106)  评论(0)    收藏  举报