fork download
  1. while((num = readline()) != 42) {
  2. print(num);
  3. }
  4. function foo() {
  5. print(1);
  6. }
  7. foo();
Success #stdin #stdout 0.01s 4988KB
stdin
1
2
10
42
11
stdout
1
2
10
1