Diamond Matrix by pooq

n=scan("stdin")
for(i in(1-n):(n-1))cat(rep(" ",a<-abs(i)),(b=n-1-a)+1-abs(-b:b),"
",sep="")

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

download

return to the top page