题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1089
参考:
#include <stdio.h>
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)//或者while(scanf("%d%d",&a,&b)==2),scanf返回()里的个数
printf("%d\n",a+b);
return 0;
}
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1089
参考:
#include <stdio.h>
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)//或者while(scanf("%d%d",&a,&b)==2),scanf返回()里的个数
printf("%d\n",a+b);
return 0;
}