For Loop by esc120

@n=(1..10);$p.="  "x($_-1)."for v$_ = ".($_-1?0:1)." to 9\n"for@n;$p.="  "x(10).'print '.(join',',map{"v$_"}@n)."\n";$p.="  "x(10-$_)."next\n"for@n;print$p;

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page