fork download
  1. program ideone;
  2. var x:byte;
  3. begin
  4. readln(x);
  5. while x<>42 do
  6. begin
  7. writeln(x);
  8. readln(x)
  9. end
  10. end.
Success #stdin #stdout 0.01s 5284KB
stdin
1
2
10
42
11
stdout
1
2
10