int main() { int a,b,c,t=0; while(scanf("%d%d",&a,&b)!=EOF) { c=a+b; if( t>0) printf("\n"); printf("%d\n",c);//注意后面的\n t++; } }
1 2 3 4 5 6
6 15