fork download
  1. while true do
  2. let n = read_int () in
  3. if n = 42 then exit 0;
  4. done;
Success #stdin #stdout 0s 5284KB
stdin
1
2
10
42
11
101
1234
stdout
1
2
10