Double Period by jpl

a,p=gets.split.map &:to_i
(2*p).times{|i|puts" "*(a+a*Math.sin(i*6.283/p)).ceil+"*"}

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

download

return to the top page