Problem Description

Your task is to Calculate a + b.

Input

Input contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case containing 0 0 terminates the input and this test case is not to be processed.

Output

For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.

Sample Input

1 5
10 20
0 0

Sample Output

6
30
#include <iostream>
using namespace std; int main()
{
int i,j;
while ( cin >> i >> j && (i || j )!=)
cout << (i + j) << endl; return ;
}

最新文章

  1. android 自定义控件——(三)水平线、虚线
  2. Linux Hadoop2.7.3 安装(单机模式) 二
  3. PRML读书后记(一): 拟合学习
  4. sass入门教程
  5. node 初识
  6. 问题解决——XP线程池找不到QueueUserWorkItem
  7. von Neumann architecture
  8. 继承TextView简单画一个尺子
  9. string 与char* char[]之间的转换 2015-04-09 11:30 29人阅读 评论(0) 收藏
  10. poj 1185 炮兵阵地(三维状态压缩dP)
  11. CSS3 垂直树状图——运用 :before 和 :after
  12. ajax跨域解决方案(服务端仅限java)
  13. Hadoop shuffle与排序
  14. 采用CSS3 Media Query技术适应Android平板屏幕分辨率和屏幕像素密度
  15. 将Win7系统将默认打开的库改为计算机
  16. Java课程设计—学生成绩管理系统(201521123005 杨雪莹)
  17. EXISTS/NOT EXISTS CASE WHEN等使用方法
  18. 使用mpvue开发小程序教程(一)
  19. 解决悬浮的&lt;header&gt;、&lt;footer&gt;遮挡内容的处理技巧
  20. 前端安全之XSS

热门文章

  1. PHP简单获取数据库查询结果并返回JSON
  2. 转:更改 centos yum 源
  3. How Many Points of Intersection?
  4. poj 3592 Instantaneous Transference
  5. Delphi COM编程学习笔记(1)
  6. 开发者应该避免使用的6个Java功能(转)
  7. SherlockactionBar中手动调用onCreateOptionsMenu的办法
  8. shell如何将文件上传至ftp
  9. mount 远程挂载Nfs
  10. Java类加载器深入理解