fork download
  1. while((num = readline()) != 42) {
  2. print(num);
  3. console.log(num)
  4. }
Success #stdin #stdout 0.02s 16816KB
stdin
1
2
10
42
11
stdout
1
1
2
2
10
10