Group: comp.lang.forth · Group Profile · Search for Bang3 in comp.lang.forth
Author: J Thomas
Date: Mar 2, 2007 07:48
... Fizz , ' Buzz , ' FizzBuzz , : do-it CELLS TABLE + @ EXECUTE ; : which-action ( n -- n 0|1|2|3 ) dup i 3 mod 0= 1 and i 5 mod 0= 2 and or ; : Bang3 0 begin 1+ dup 101 < while which-action do-it repeat drop ; I guess when the first methods I learned give a result that isn't too long, then that's the most readable. There's nothing hard to ...
|