fork(3) download
  1. #!/usr/bin/perl
  2. $n=<>;for$x(-$n..$n){for$y(-$n..$n){print$x^$y?$x+$y?$x?$y?$":'|':'-':'/':$x?'\\':'O'}print$/}
  3.  
Success #stdin #stdout 0s 6000KB
stdin
4
stdout
\   |   /
 \  |  / 
  \ | /  
   \|/   
----O----
   /|\   
  / | \  
 /  |  \ 
/   |   \