A+B for Input-Output Practice (III)
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 56513    Accepted Submission(s): 29030

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 <stdio.h>
int main()
{int a,b;
 while(scanf("%d %d",&a,&b),a||b)
 {printf("%d\n",a+b);
        }                   
 return 0;
}

最新文章

  1. CSS3变形记(上):千变万化的Div
  2. UIkit框架之uUInavigationController
  3. iOS开发之——制作framework静态库教程
  4. codevs 1206 保留两位小数
  5. swift基础--字符串
  6. window.location.search作用
  7. Controller和RequestMapping
  8. jquery ashx
  9. opencv视频播放
  10. iosOC不可变字典和可变字典
  11. 兼容ie浏览器的placeholder的几种方法
  12. JavaAPI 中 &lt;E&gt; 与 &lt;T&gt; 的含义
  13. 百度上传插件---webuploader的使用
  14. 解决js的 Math取正弦值 余弦值不准确的问题
  15. 受欢迎的牛[HAOI2006]
  16. SQL注入之PHP-MySQL实现手工注入-数字型
  17. Java动态代理的实现机制
  18. 上拉刷新和下拉刷新的两种方法(包括使用第三方库MJRefresh)
  19. ibatitsnet 因为会Dao.config 配置数据版本太低导致的问题
  20. h5 plus/h5+规范使用,模块索引,教你如何去看h5+的手册

热门文章

  1. java网络编程UDP
  2. 搭建Git服务器(转载)
  3. Java根据年度将数据分组
  4. jmeter 3.x plugins 的使用
  5. UNIX环境高级编程--9. 进程控制
  6. SQL--大解密之组织数据
  7. Linux文件系统inode、block解释权限(三)
  8. 【PL/SQL】用星号拼出金字塔
  9. html中设置浏览器解码方式
  10. html5——私有前缀