fork download
  1. program ideone;
  2. var x: integer;
  3. begin
  4. repeat
  5. readln(x);
  6. if x<>42 then writeln(x);
  7. until x=42
  8. end.
Success #stdin #stdout 0s 5280KB
stdin
1
2
10
42
11
stdout
1
2
10