RosettaCodeData/Task/User-input-Text/Forth/user-input-text-5.fth

9 lines
244 B
Forth

: input#
begin
refill drop bl parse-word ( a n)
number error? ( n f)
while ( n)
drop ( --)
repeat ( n)
;