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 5320KB
stdin
1
2
10
42
11
stdout
1
2
10