\ $Id: nestedloop.gforth,v 1.7 2001/05/25 16:45:53 doug Exp $ \ http://www.bagley.org/~doug/shootout/ decimal \ read NUM from last command line argument 0. argc @ 1- arg >number 2drop drop constant NUM : nestedloops NUM 0 do NUM 0 do NUM 0 do NUM 0 do NUM 0 do NUM 0 do 1+ loop loop loop loop loop loop ; \ run test and print result 0 nestedloops 1 u.r cr bye \ th-th-that's all folks!