var n=readInt;for(i<- -n to n){for(j<- -n to n)print(if(i*i+j*j>n*n)" "else"*");println}

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

download

return top