fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x,y;
  5. for(; scanf("%d",&x) > 0 && x != 42; printf("%d\n", x));
  6. for(; scanf("%d",&y) > 0 && y != 42; printf("%d\n", y));
  7. return 0;
  8. }
Success #stdin #stdout 0.01s 5288KB
stdin
100
200
stdout
100
200