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