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 4380KB
stdin
1
2
10
42
11
stdout
1
2
10