Plot Circle by teebee

enum C{C;int r=(int)(4*Math.random()),x,y=-(r=(r*r+r)*5);{for(;y<=r;y++){String s="";for(x=-r;x<=r;)s+=x*x+++y*y>r*r?" ":"*";System.out.println(s);}}}

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

download

return to the top page