fork download
  1. #include<stdio.h>
  2.  
  3. int main(){
  4. int a, b;
  5. while(scanf("%d %d", &a, &b) != EOF){
  6. if(a == 0 && b == 0)
  7. break;
  8. printf("%d\n", a + b);
  9.  
  10. }
  11. }
Success #stdin #stdout 0s 5276KB
stdin
1 2
3 4 
5 6
0 0
stdout
3
7
11