fork download
  1. create inbuf 16 chars allot
  2.  
  3. : gobble begin key dup 48 < while drop repeat ;
  4. : readint dup gobble begin dup 47 > while over c! 1+ key repeat drop over - ;
  5. : kthx begin inbuf readint over over s" 42" compare while type cr repeat drop drop ;
  6.  
  7. kthx bye
  8.  
Success #stdin #stdout 0.01s 5280KB
stdin
1
2
88
42
10
stdout
1
2
88