A + B Problem
来源:互联网 发布:淘宝雪纺衫花色衬衣 编辑:程序博客网 时间:2024/06/16 04:55
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.
Sample Input
1 1
Sample Output
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.
Sample Input
1 1
Sample Output
2
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in=new Scanner(System.in);
int a,b;
while(in.hasNext())
{
a=in.nextInt();
b=in.nextInt();
System.out.println(a+b);
}
}
}
0 0
- problem 1000: A+B problem
- Problem 1000 A+B Problem
- Problem - 1000 A + B Problem
- A + B Problem
- A + B Problem
- 1000 A+B Problem
- 1001 A + B Problem
- A+B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem
- 1000 A + B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem II
- A + B Problem II
- POJ1001 -- A-B Problem
- A + B problem II
- sql server 数据类型
- HDU 1166 敌兵布阵
- sdut 面向对象程序设计上机练习十一(运算符重载)
- 黑马程序员-----面霸题目
- 用jsp写注册页面
- A + B Problem
- \\w+\\|\\d+ 这个在java里啥意思啊?
- Android之简单Socket编程
- GridControl详解(一)原汁原味的表格展示
- C语言知识查漏补缺与心得体会(1)
- POJ-1321-棋盘问题
- 编译指令page覆盖meta设置
- 更新ZTE N880E手机的MAC地址
- 栈的应用