fork download
  1. import std.c.stdio;
  2.  
  3. int main() {
  4. int x;
  5. while (scanf("%d", &x) && x!=42) printf ("%d\n", x);
  6. return 0;
  7. }
Success #stdin #stdout 0s 2044KB
stdin
1
2
10
42
11
stdout
1
2
10