a + b问题(例题)

来源:互联网 发布:手机淘宝联系卖家 编辑:程序博客网 时间:2024/05/17 07:41

a + b问题

Input
输入数据每行包括2个整数 a 和 b.一直处理到文件结束。
 
Output
对于每行输入的 a 和 b 都要有一行相应的输出,输出内容为 a 和 b 的和.

Sample Input
1 5
2 4
11 23

Sample Output
6
6
34

Hint
/* C sample */
#include <stdio.h>
int main()
{
    int a,b;
    while(scanf("%d%d",&a,&b) != EOF)
        printf("%d/n",a+b);
    return 0;
}

原创粉丝点击