Comment detail

与えられた数字のケタ数 (Nested Flatten)
負の値は考慮外です。
0の場合は、1 1 を返します。
1
2
3
4
5
6
7
8
: KETAKURAI ( n -- )
1 1 ROT
BEGIN
  DUP 10 >
WHILE
  10 / ROT 10 * ROT 1+ ROT
REPEAT
DROP . . ;

Index

Feed

Other

Link

Pathtraq

loading...