fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x,y;
  5. y=50;
  6. for(; scanf("%d",&x) > 0 && x != 42; printf("%d\n", x+y));
  7. return 0;
  8. }
Success #stdin #stdout 0s 5312KB
stdin
1
2
10
42
11
stdout
51
52
60