Comment detail

LL Golf Hole 8 - 横向きのピラミッドを作る (Nested Flatten)
秀丸マクロ。
なかなか小さくならない。



1
2
3
4
5
6
7
8
#h=4;
while(y-#h+1<#h){
    #a=y-#h+1;
    if(#a<0)#a=#a*-1;
    $p="";
    while(strlen($p)<#h-#a)$p=$p+"*";
    insert$p+"\n";
}

Index

Feed

Other

Link

Pathtraq

loading...