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