fork download
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. int num1 = 1, num2 = 1;
  7. while (!(num1 == 0 && num2 == 0)) {
  8. scanf("%d %d", &num1, &num2);
  9. printf("%d\n", num1 + num2);
  10. }
  11. }
  12.  
Success #stdin #stdout 0.01s 5512KB
stdin
1 1
2 3
3 4
9 8
5 2
0 0
stdout
2
5
7
17
7
0