program ideone;var e: integer;begin repeat read(e); if e <> 42 then write(e); until e = 42end.
1 2 10 42 11
1210
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!