fork download
  1. import os
  2. import strutils
  3.  
  4. while true:
  5. var
  6. line:string = stdin.readLine
  7. x = line.parseInt
  8. if x == 42:
  9. break
  10. else:
  11. echo line
Success #stdin #stdout 0.01s 5316KB
stdin
1
2
88
42
10
stdout
1
2
88