fork download
  1. #!/usr/bin/perl
  2. $m=<> and print join"\n",map{' 'x($m-$_).'*'x(2*$_+1)}(0..$m),"\n";
Success #stdin #stdout 0s 3564KB
stdin
12
stdout
            *
           ***
          *****
         *******
        *********
       ***********
      *************
     ***************
    *****************
   *******************
  *********************
 ***********************
*************************
            *