1 #include <stdio.h> 2 int main() 3 { 4 int a,b; 5 while(scanf("%d %d",&a,&b)){ 6 if(a==0&&b==0)return 0; 7 else printf("%d\n",a+b); 8 } 9 return 0; 10 }
1 #include <stdio.h> 2 int main() 3 { 4 int a,b; 5 while(scanf("%d %d",&a,&b)){ 6 if(a==0&&b==0)return 0; 7 else printf("%d\n",a+b); 8 } 9 return 0; 10 }
转载于:https://www.cnblogs.com/Codenewbie2/p/3779039.html