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
2
 
#include<stdio.h>

int main()
{
int a, b; //定义a,b两数
while (scanf("%d%d", &a, &b) == 2) //循环输入a,b
printf("%d\n", a + b); //求a+b,并输出 return 0;
}

  

最新文章

  1. Matlab中使用脚本和xml文件自动生成bus模块
  2. SQLite3中自增主键归零方法
  3. 12 个 Web 设计师必备的 Bootstrap 工具
  4. android19以上和以下uri转路径的方法
  5. 解决AD域认证问题—“未知的身份验证机制”
  6. 图像本地预览插件(基于JQUERY、HTML5)
  7. print,print_r,echo,var_dump,var_export比较
  8. C# 基于委托的事件
  9. Ubuntu12.04 Jdk1.7 Tomct7.0部署配置
  10. 一起学习CMake – 02
  11. mysql中 date datetime time timestamp 的区别
  12. Python开发【内置模块篇】日志模块
  13. 2019.03.02 bzoj2565: 最长双回文串(pam)
  14. OEMbutton乱码问题解决
  15. jquery插件解读之tabs
  16. oracle_jdbc_Query
  17. RF - selenium - open browser
  18. keil之编辑环境配置
  19. 用 GitLab CI 进行持续集成
  20. ubuntu apache2配置,包括虚拟机配置

热门文章

  1. CMake是用于生成make文件的跨平台编译文件
  2. background-color和background-image相关细节
  3. nodejs使用request和bluebird编写的http请求模块
  4. RabbitMQ之五种消息模型
  5. spring使用Redis自定义前缀后缀名(去掉SimpleKey []+自定义)
  6. Spring 通过XML配置装配Bean
  7. Java构造器(构造方法)与方法区别
  8. torch.backend.cudnn.benchmark
  9. P2916 [USACO08NOV]安慰奶牛Cheering up the Cow
  10. python -- @classmethod @staticmethod区别和使用