fork download
  1. USING: io kernel math math.parser ;
  2.  
  3. readln string>number
  4.  
  5. [ dup 0 > ] [ dup 2 mod number>string print drop 2 div ] while drop
  6.  
  7.  
Runtime error #stdin #stdout 0.18s 159232KB
stdin
11
stdout
./prog.factor

5: [ dup 0 > ] [ dup 2 mod number>string print drop 2 div ] while drop
                                                         ^
No word named “div” found in current vocabulary search path