fork download
  1. while (1 == 1) {
  2. x = read();
  3. if (x != 42) {
  4. print x, "\n";
  5. } else {
  6. break;
  7. }
  8. }
  9.  
Success #stdin #stdout 0s 5320KB
stdin
1
2
88
42
10
stdout
1
2
88