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